{"schema":"apidocs/1","module":{"name":"polyglot-tck","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":"org.graalvm.polyglot.tck","name":"org.graalvm.polyglot.tck","doc":{"summary":[{"kind":"text","text":"Provide an implementation of the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.LanguageProvider"},"code":true,"children":[{"kind":"text","text":"org.graalvm.polyglot.tck.LanguageProvider"}]},{"kind":"text","text":" to test language inter-operability."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Provide an implementation of the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.LanguageProvider"},"code":true,"children":[{"kind":"text","text":"org.graalvm.polyglot.tck.LanguageProvider"}]},{"kind":"text","text":" to test language inter-operability. See "},{"kind":"link","url":"https://github.com/oracle/graal/blob/master/truffle/docs/TCK.md","children":[{"kind":"text","text":"Test Compatibility Kit"}]},{"kind":"text","text":" for details how to add a new language provider and execute tests."}]}]},"since":"0.30","types":[{"id":"org.graalvm.polyglot.tck.InlineSnippet","name":"InlineSnippet","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":"InlineSnippet"}],"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":"org.graalvm.polyglot.tck.InlineSnippet#getScript()","anchor":"getScript()","kind":"method","name":"getScript","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Snippet","ref":"org.graalvm.polyglot.tck.Snippet"},{"kind":"punct","text":" "},{"kind":"name","text":"getScript"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Snippet","ref":"org.graalvm.polyglot.tck.Snippet"}]},"doc":{"summary":[{"kind":"text","text":"Returns a script to be executed."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a script to be executed. The "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.InlineSnippet#getCode()"},"code":true,"children":[{"kind":"text","text":"source code"}]},{"kind":"text","text":" is executed inlined in this script."}]}]},"since":"0.32","source":{"path":"org/graalvm/polyglot/tck/InlineSnippet.java","line":83}},{"id":"org.graalvm.polyglot.tck.InlineSnippet#getCode()","anchor":"getCode()","kind":"method","name":"getCode","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"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":"getCode"},{"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":{"summary":[{"kind":"text","text":"Returns an inline source code that is to be executed at specific "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.InlineSnippet#getLocationPredicate()"},"code":true,"children":[{"kind":"text","text":"locations"}]},{"kind":"text","text":", or at all statement and call locations if the predicate is "},{"kind":"code","text":"null"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns an inline source code that is to be executed at specific "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.InlineSnippet#getLocationPredicate()"},"code":true,"children":[{"kind":"text","text":"locations"}]},{"kind":"text","text":", or at all statement and call locations if the predicate is "},{"kind":"code","text":"null"},{"kind":"text","text":"."}]}]},"since":"0.32","source":{"path":"org/graalvm/polyglot/tck/InlineSnippet.java","line":94}},{"id":"org.graalvm.polyglot.tck.InlineSnippet#getLocationPredicate()","anchor":"getLocationPredicate()","kind":"method","name":"getLocationPredicate","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"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":"SourceSection","ref":"org.graalvm.polyglot.SourceSection","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/SourceSection.html"},{"kind":"punct","text":"> "},{"kind":"name","text":"getLocationPredicate"},{"kind":"punct","text":"()"}],"returns":{"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":"SourceSection","ref":"org.graalvm.polyglot.SourceSection","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/SourceSection.html"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the predicate that returns "},{"kind":"code","text":"true"},{"kind":"text","text":" for "},{"kind":"link","target":{"id":"org.graalvm.polyglot.SourceSection","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/SourceSection.html"},"code":true,"children":[{"kind":"text","text":"SourceSection"}]},{"kind":"text","text":"s where the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.InlineSnippet#getCode()"},"code":true,"children":[{"kind":"text","text":"source code"}]},{"kind":"text","text":" is to be executed, or "},{"kind":"code","text":"null"},{"kind":"text","text":" if the source code should be executed at all instrumentable statement and call locations."}]}]},"doc":{"summary":[{"kind":"text","text":"Returns a testing predicate for locations at which "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.InlineSnippet#getCode()"},"code":true,"children":[{"kind":"text","text":"source code"}]},{"kind":"text","text":" is executed."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns a testing predicate for locations at which "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.InlineSnippet#getCode()"},"code":true,"children":[{"kind":"text","text":"source code"}]},{"kind":"text","text":" is executed."}]}]},"since":"0.32","source":{"path":"org/graalvm/polyglot/tck/InlineSnippet.java","line":107}},{"id":"org.graalvm.polyglot.tck.InlineSnippet#getResultVerifier()","anchor":"getResultVerifier()","kind":"method","name":"getResultVerifier","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"ResultVerifier","ref":"org.graalvm.polyglot.tck.ResultVerifier"},{"kind":"punct","text":" "},{"kind":"name","text":"getResultVerifier"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"ResultVerifier","ref":"org.graalvm.polyglot.tck.ResultVerifier"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"either a custom or the default "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.ResultVerifier"},"code":true,"children":[{"kind":"text","text":"ResultVerifier"}]},{"kind":"text","text":"."}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.ResultVerifier"},"code":true,"children":[{"kind":"text","text":"ResultVerifier"}]},{"kind":"text","text":" to verify the result of "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.InlineSnippet#getCode()"},"code":true,"children":[{"kind":"text","text":"source code"}]},{"kind":"text","text":" execution."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.ResultVerifier"},"code":true,"children":[{"kind":"text","text":"ResultVerifier"}]},{"kind":"text","text":" to verify the result of "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.InlineSnippet#getCode()"},"code":true,"children":[{"kind":"text","text":"source code"}]},{"kind":"text","text":" execution."}]}]},"since":"0.32","source":{"path":"org/graalvm/polyglot/tck/InlineSnippet.java","line":119}},{"id":"org.graalvm.polyglot.tck.InlineSnippet#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.32","source":{"path":"org/graalvm/polyglot/tck/InlineSnippet.java","line":128}},{"id":"org.graalvm.polyglot.tck.InlineSnippet#newBuilder(org.graalvm.polyglot.tck.Snippet,java.lang.CharSequence)","anchor":"newBuilder(org.graalvm.polyglot.tck.Snippet,java.lang.CharSequence)","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":"InlineSnippet.Builder","ref":"org.graalvm.polyglot.tck.InlineSnippet$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"newBuilder"},{"kind":"punct","text":"("},{"kind":"type","text":"Snippet","ref":"org.graalvm.polyglot.tck.Snippet"},{"kind":"punct","text":" "},{"kind":"param","text":"script"},{"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":"code"},{"kind":"punct","text":")"}],"params":[{"name":"script","type":[{"kind":"type","text":"Snippet","ref":"org.graalvm.polyglot.tck.Snippet"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the script to execute (use "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.Snippet#newBuilder(java.lang.String,org.graalvm.polyglot.Value,org.graalvm.polyglot.tck.TypeDescriptor)"},"code":true,"children":[{"kind":"text","text":"Snippet.newBuilder(String, Value, TypeDescriptor)"}]},{"kind":"text","text":" to create one)"}]}]},{"name":"code","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 inline source code that is to be executed inside the script"}]}]}],"returns":{"type":[{"kind":"type","text":"InlineSnippet.Builder","ref":"org.graalvm.polyglot.tck.InlineSnippet$Builder"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the new "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.InlineSnippet$Builder"},"code":true,"children":[{"kind":"text","text":"Builder"}]}]}]},"doc":{"summary":[{"kind":"text","text":"Creates a new "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.InlineSnippet"},"code":true,"children":[{"kind":"text","text":"InlineSnippet"}]},{"kind":"text","text":" builder object."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a new "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.InlineSnippet"},"code":true,"children":[{"kind":"text","text":"InlineSnippet"}]},{"kind":"text","text":" builder object."}]}]},"since":"0.32","source":{"path":"org/graalvm/polyglot/tck/InlineSnippet.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#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","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 unit of execution with an inline source."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"The unit of execution with an inline source. The "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.InlineSnippet"},"code":true,"children":[{"kind":"text","text":"InlineSnippet"}]},{"kind":"text","text":" represents an execution of a script and an associated inline source code that is to be executed at script's locations."}]},{"kind":"paragraph","children":[{"kind":"text","text":"It's recommended to provide two snippets at least, one with local variables and restricted "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.InlineSnippet$Builder#locationPredicate(java.util.function.Predicate)"},"code":true,"children":[{"kind":"text","text":"location predicate"}]},{"kind":"text","text":" and one with globally accessible "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.InlineSnippet#getCode()"},"code":true,"children":[{"kind":"text","text":"code"}]},{"kind":"text","text":" and no location predicate."}]}]},"since":"0.32","source":{"path":"org/graalvm/polyglot/tck/InlineSnippet.java","line":59}},{"id":"org.graalvm.polyglot.tck.InlineSnippet$Builder","name":"InlineSnippet.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":"InlineSnippet.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":"org.graalvm.polyglot.tck.InlineSnippet","members":[{"id":"org.graalvm.polyglot.tck.InlineSnippet$Builder#locationPredicate(java.util.function.Predicate)","anchor":"locationPredicate(java.util.function.Predicate)","kind":"method","name":"locationPredicate","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"InlineSnippet.Builder","ref":"org.graalvm.polyglot.tck.InlineSnippet$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"locationPredicate"},{"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":"SourceSection","ref":"org.graalvm.polyglot.SourceSection","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/SourceSection.html"},{"kind":"punct","text":"> "},{"kind":"param","text":"locationPredicate"},{"kind":"punct","text":")"}],"params":[{"name":"locationPredicate","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":"SourceSection","ref":"org.graalvm.polyglot.SourceSection","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/SourceSection.html"},{"kind":"punct","text":">"}]}],"returns":{"type":[{"kind":"type","text":"InlineSnippet.Builder","ref":"org.graalvm.polyglot.tck.InlineSnippet$Builder"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the predicate that returns "},{"kind":"code","text":"true"},{"kind":"text","text":" for "},{"kind":"link","target":{"id":"org.graalvm.polyglot.SourceSection","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/SourceSection.html"},"code":true,"children":[{"kind":"text","text":"SourceSection"}]},{"kind":"text","text":"s where source is to be executed"}]}]},"doc":{"summary":[{"kind":"text","text":"Sets a testing predicate for locations at which the source is executed."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Sets a testing predicate for locations at which the source is executed. By default, the source is executed at all instrumentable statement and call locations in the script."}]}]},"since":"0.32","source":{"path":"org/graalvm/polyglot/tck/InlineSnippet.java","line":177}},{"id":"org.graalvm.polyglot.tck.InlineSnippet$Builder#resultVerifier(org.graalvm.polyglot.tck.ResultVerifier)","anchor":"resultVerifier(org.graalvm.polyglot.tck.ResultVerifier)","kind":"method","name":"resultVerifier","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"InlineSnippet.Builder","ref":"org.graalvm.polyglot.tck.InlineSnippet$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"resultVerifier"},{"kind":"punct","text":"("},{"kind":"type","text":"ResultVerifier","ref":"org.graalvm.polyglot.tck.ResultVerifier"},{"kind":"punct","text":" "},{"kind":"param","text":"resultVerifier"},{"kind":"punct","text":")"}],"params":[{"name":"resultVerifier","type":[{"kind":"type","text":"ResultVerifier","ref":"org.graalvm.polyglot.tck.ResultVerifier"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the custom "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.ResultVerifier"},"code":true,"children":[{"kind":"text","text":"ResultVerifier"}]}]}]}],"returns":{"type":[{"kind":"type","text":"InlineSnippet.Builder","ref":"org.graalvm.polyglot.tck.InlineSnippet$Builder"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"this "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.InlineSnippet$Builder"},"code":true,"children":[{"kind":"text","text":"Builder"}]}]}]},"doc":{"summary":[{"kind":"text","text":"Sets a custom verifier of a result of the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.InlineSnippet#getCode()"},"code":true,"children":[{"kind":"text","text":"inline source"}]},{"kind":"text","text":" execution."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Sets a custom verifier of a result of the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.InlineSnippet#getCode()"},"code":true,"children":[{"kind":"text","text":"inline source"}]},{"kind":"text","text":" execution."}]}]},"since":"0.32","source":{"path":"org/graalvm/polyglot/tck/InlineSnippet.java","line":191}},{"id":"org.graalvm.polyglot.tck.InlineSnippet$Builder#build()","anchor":"build()","kind":"method","name":"build","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"InlineSnippet","ref":"org.graalvm.polyglot.tck.InlineSnippet"},{"kind":"punct","text":" "},{"kind":"name","text":"build"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"InlineSnippet","ref":"org.graalvm.polyglot.tck.InlineSnippet"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.InlineSnippet"},"code":true,"children":[{"kind":"text","text":"InlineSnippet"}]}]}]},"doc":{"summary":[{"kind":"text","text":"Creates a new "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.InlineSnippet"},"code":true,"children":[{"kind":"text","text":"InlineSnippet"}]},{"kind":"text","text":" configured by this "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.InlineSnippet$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":"org.graalvm.polyglot.tck.InlineSnippet"},"code":true,"children":[{"kind":"text","text":"InlineSnippet"}]},{"kind":"text","text":" configured by this "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.InlineSnippet$Builder"},"code":true,"children":[{"kind":"text","text":"Builder"}]},{"kind":"text","text":"."}]}]},"since":"0.32","source":{"path":"org/graalvm/polyglot/tck/InlineSnippet.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#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","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 builder of an "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.InlineSnippet"},"code":true,"children":[{"kind":"text","text":"InlineSnippet"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"The builder of an "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.InlineSnippet"},"code":true,"children":[{"kind":"text","text":"InlineSnippet"}]},{"kind":"text","text":"."}]}]},"since":"0.32","source":{"path":"org/graalvm/polyglot/tck/InlineSnippet.java","line":153}},{"id":"org.graalvm.polyglot.tck.LanguageProvider","name":"LanguageProvider","kind":"interface","language":"java","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"interface"},{"kind":"punct","text":" "},{"kind":"name","text":"LanguageProvider"}],"members":[{"id":"org.graalvm.polyglot.tck.LanguageProvider#getId()","anchor":"getId()","kind":"method","name":"getId","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":"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 language identification"}]}]},"doc":{"summary":[{"kind":"text","text":"Returns an identification of a provider."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns an identification of a provider. The common pattern is to use the identification of the tested language."}]}]},"since":"0.30","source":{"path":"org/graalvm/polyglot/tck/LanguageProvider.java","line":71}},{"id":"org.graalvm.polyglot.tck.LanguageProvider#additionalOptions()","anchor":"additionalOptions()","kind":"method","name":"additionalOptions","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"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":"additionalOptions"},{"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 "},{"kind":"code","text":"(key, value)"},{"kind":"text","text":" pairs of language option to add to the context."}]}]},"doc":{"summary":[{"kind":"text","text":"Allows language providers to provide language options during the creation of the test context."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Allows language providers to provide language options during the creation of the test context. "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.LanguageProvider"},"code":true,"children":[{"kind":"text","text":"LanguageProviders"}]},{"kind":"text","text":" are only allowed to set options of the language they represent (Options starting with "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.LanguageProvider#getId()"},"code":true,"children":[{"kind":"text","text":"getId()"}]},{"kind":"text","text":"). Attempts to set options other than their own language will throw "},{"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":" on test context creation."}]}]},"since":"22.3","source":{"path":"org/graalvm/polyglot/tck/LanguageProvider.java","line":83}},{"id":"org.graalvm.polyglot.tck.LanguageProvider#createIdentityFunction(org.graalvm.polyglot.Context)","anchor":"createIdentityFunction(org.graalvm.polyglot.Context)","kind":"method","name":"createIdentityFunction","signature":[{"kind":"type","text":"Value","ref":"org.graalvm.polyglot.Value","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Value.html"},{"kind":"punct","text":" "},{"kind":"name","text":"createIdentityFunction"},{"kind":"punct","text":"("},{"kind":"type","text":"Context","ref":"org.graalvm.polyglot.Context","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Context.html"},{"kind":"punct","text":" "},{"kind":"param","text":"context"},{"kind":"punct","text":")"}],"params":[{"name":"context","type":[{"kind":"type","text":"Context","ref":"org.graalvm.polyglot.Context","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Context.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the context for a guest language code literal evaluation"}]}]}],"returns":{"type":[{"kind":"type","text":"Value","ref":"org.graalvm.polyglot.Value","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Value.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"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":" representing the identity function"}]}]},"doc":{"summary":[{"kind":"text","text":"Creates an identity function."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates an identity function. The identity function just returns its argument."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The JavaScript sample implementation:"}]},{"kind":"code","text":"@Override\npublic Value createIdentityFunction(Context context) {\n    return context.eval(\"js\", \"(function (a){ return a; })\");\n}"},{"kind":"paragraph","children":[{"kind":"text","text":"The R sample implementation:"}]},{"kind":"code","text":"@Override\npublic Value createIdentityFunction(Context context) {\n    return context.eval(\"R\", \"function (a){ a }\");\n}"}]},"since":"0.30","source":{"path":"org/graalvm/polyglot/tck/LanguageProvider.java","line":114}},{"id":"org.graalvm.polyglot.tck.LanguageProvider#createIdentityFunctionSnippet(org.graalvm.polyglot.Context)","anchor":"createIdentityFunctionSnippet(org.graalvm.polyglot.Context)","kind":"method","name":"createIdentityFunctionSnippet","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"kind":"punct","text":" "},{"kind":"type","text":"Snippet","ref":"org.graalvm.polyglot.tck.Snippet"},{"kind":"punct","text":" "},{"kind":"name","text":"createIdentityFunctionSnippet"},{"kind":"punct","text":"("},{"kind":"type","text":"Context","ref":"org.graalvm.polyglot.Context","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Context.html"},{"kind":"punct","text":" "},{"kind":"param","text":"context"},{"kind":"punct","text":")"}],"params":[{"name":"context","type":[{"kind":"type","text":"Context","ref":"org.graalvm.polyglot.Context","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Context.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the context for a guest language code literal evaluation"}]}]}],"returns":{"type":[{"kind":"type","text":"Snippet","ref":"org.graalvm.polyglot.tck.Snippet"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.Snippet"},"code":true,"children":[{"kind":"text","text":"Snippet"}]},{"kind":"text","text":" representing the identity function"}]}]},"doc":{"summary":[{"kind":"text","text":"Creates a "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.Snippet"},"code":true,"children":[{"kind":"text","text":"Snippet"}]},{"kind":"text","text":" for an identity function."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.Snippet"},"code":true,"children":[{"kind":"text","text":"Snippet"}]},{"kind":"text","text":" for an identity function. The identity function just returns its argument. This method allows an implementor to override the default identity function verification. In most cases it's not needed to implement this method and it's enough to implement "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.LanguageProvider#createIdentityFunction(org.graalvm.polyglot.Context)"},"code":true,"children":[{"kind":"text","text":"createIdentityFunction"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The implementor can delegate to the default identity function verifier obtained by "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.ResultVerifier#getIdentityFunctionDefaultResultVerifier()"},"code":true,"children":[{"kind":"text","text":"ResultVerifier.getIdentityFunctionDefaultResultVerifier()"}]},{"kind":"text","text":"."}]}]},"since":"19.1.0","source":{"path":"org/graalvm/polyglot/tck/LanguageProvider.java","line":129}},{"id":"org.graalvm.polyglot.tck.LanguageProvider#createValueConstructors(org.graalvm.polyglot.Context)","anchor":"createValueConstructors(org.graalvm.polyglot.Context)","kind":"method","name":"createValueConstructors","signature":[{"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":"Snippet","ref":"org.graalvm.polyglot.tck.Snippet"},{"kind":"punct","text":"> "},{"kind":"name","text":"createValueConstructors"},{"kind":"punct","text":"("},{"kind":"type","text":"Context","ref":"org.graalvm.polyglot.Context","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Context.html"},{"kind":"punct","text":" "},{"kind":"param","text":"context"},{"kind":"punct","text":")"}],"params":[{"name":"context","type":[{"kind":"type","text":"Context","ref":"org.graalvm.polyglot.Context","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Context.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the context for a guest language code literal evaluation"}]}]}],"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":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Snippet","ref":"org.graalvm.polyglot.tck.Snippet"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"factories creating the language data types"}]}]},"doc":{"summary":[{"kind":"text","text":"Creates a collection of functions creating language data types."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a collection of functions creating language data types. For each language data type create a function returning a value of given type and assign a correct "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.TypeDescriptor"},"code":true,"children":[{"kind":"text","text":"TypeDescriptor"}]},{"kind":"text","text":" to it. The "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.TypeDescriptor"},"code":true,"children":[{"kind":"text","text":"TypeDescriptor"}]},{"kind":"text","text":" can be one of the predefined "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.TypeDescriptor"},"code":true,"children":[{"kind":"text","text":"TypeDescriptor"}]},{"kind":"text","text":"s, an array with component type, an executable with required parameter types or an intersection type."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The JavaScript sample implementation creating a boolean type:"}]},{"kind":"code","text":""}]},"since":"0.30","source":{"path":"org/graalvm/polyglot/tck/LanguageProvider.java","line":180}},{"id":"org.graalvm.polyglot.tck.LanguageProvider#createExpressions(org.graalvm.polyglot.Context)","anchor":"createExpressions(org.graalvm.polyglot.Context)","kind":"method","name":"createExpressions","signature":[{"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":"Snippet","ref":"org.graalvm.polyglot.tck.Snippet"},{"kind":"punct","text":"> "},{"kind":"name","text":"createExpressions"},{"kind":"punct","text":"("},{"kind":"type","text":"Context","ref":"org.graalvm.polyglot.Context","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Context.html"},{"kind":"punct","text":" "},{"kind":"param","text":"context"},{"kind":"punct","text":")"}],"params":[{"name":"context","type":[{"kind":"type","text":"Context","ref":"org.graalvm.polyglot.Context","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Context.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the context for a guest language code literal evaluation"}]}]}],"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":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Snippet","ref":"org.graalvm.polyglot.tck.Snippet"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"factories creating the language expressions"}]}]},"doc":{"summary":[{"kind":"text","text":"Creates a collection of functions representing language expressions to test."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a collection of functions representing language expressions to test. For each language operator create a function performing given operator and assign a correct "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.TypeDescriptor"},"code":true,"children":[{"kind":"text","text":"TypeDescriptor"}]},{"kind":"text","text":"s to its parameters and return type. The parameter types and return type can be one of the predefined "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.TypeDescriptor"},"code":true,"children":[{"kind":"text","text":"TypeDescriptor"}]},{"kind":"text","text":"s, an array with component type, an executable with required parameter types or an union type."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The JavaScript sample implementation creating a plus operator:"}]},{"kind":"code","text":"@Override\npublic Collection<? extends Snippet> createExpressions(Context context) {\n    final Collection<Snippet> expressions = new ArrayList<>();\n    final TypeDescriptor numeric = TypeDescriptor.union(\n                    TypeDescriptor.NUMBER,\n                    TypeDescriptor.BOOLEAN);\n    final TypeDescriptor nonNumeric = TypeDescriptor.union(\n                    TypeDescriptor.STRING,\n                    TypeDescriptor.OBJECT,\n                    TypeDescriptor.ARRAY,\n                    TypeDescriptor.EXECUTABLE_ANY);\n    Snippet.Builder builder = Snippet.newBuilder(\n                    \"+\",\n                    context.eval(\"js\",\n                                    \"(function (a, b){ return a + b;})\"),\n                    TypeDescriptor.NUMBER).parameterTypes(numeric, numeric);\n    expressions.add(builder.build());\n    builder = Snippet.newBuilder(\n                    \"+\",\n                    context.eval(\"js\",\n                                    \"(function (a, b){ return a + b;})\"),\n                    TypeDescriptor.STRING).parameterTypes(nonNumeric, TypeDescriptor.ANY);\n    expressions.add(builder.build());\n    builder = Snippet.newBuilder(\n                    \"+\",\n                    context.eval(\"js\",\n                                    \"(function (a, b){ return a + b;})\"),\n                    TypeDescriptor.STRING).parameterTypes(TypeDescriptor.ANY, nonNumeric);\n    expressions.add(builder.build());\n    return expressions;\n}"},{"kind":"paragraph","children":[{"kind":"text","text":"The R sample implementation creating a plus operator:"}]},{"kind":"code","text":"@Override\npublic Collection<? extends Snippet> createExpressions(Context context) {\n    final Collection<Snippet> expressions = new ArrayList<>();\n    final TypeDescriptor numOrBool = TypeDescriptor.union(\n                    TypeDescriptor.NUMBER,\n                    TypeDescriptor.BOOLEAN);\n    final TypeDescriptor arrNumOrBool = TypeDescriptor.array(\n                    numOrBool);\n    final TypeDescriptor numeric = TypeDescriptor.union(\n                    numOrBool,\n                    arrNumOrBool);\n    Snippet.Builder builder = Snippet.newBuilder(\n                    \"+\",\n                    context.eval(\"R\",\n                                    \"function (a, b){ a + b}\"),\n                    numeric).parameterTypes(numeric, numeric);\n    expressions.add(builder.build());\n    return expressions;\n}"}]},"since":"0.30","source":{"path":"org/graalvm/polyglot/tck/LanguageProvider.java","line":254}},{"id":"org.graalvm.polyglot.tck.LanguageProvider#createStatements(org.graalvm.polyglot.Context)","anchor":"createStatements(org.graalvm.polyglot.Context)","kind":"method","name":"createStatements","signature":[{"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":"Snippet","ref":"org.graalvm.polyglot.tck.Snippet"},{"kind":"punct","text":"> "},{"kind":"name","text":"createStatements"},{"kind":"punct","text":"("},{"kind":"type","text":"Context","ref":"org.graalvm.polyglot.Context","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Context.html"},{"kind":"punct","text":" "},{"kind":"param","text":"context"},{"kind":"punct","text":")"}],"params":[{"name":"context","type":[{"kind":"type","text":"Context","ref":"org.graalvm.polyglot.Context","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Context.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the context for a guest language code literal evaluation"}]}]}],"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":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Snippet","ref":"org.graalvm.polyglot.tck.Snippet"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"factories creating the language statements"}]}]},"doc":{"summary":[{"kind":"text","text":"Creates a collection of functions representing language statements to test."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a collection of functions representing language statements to test. For each control flow statement create a function performing given statement and assign a correct "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.TypeDescriptor"},"code":true,"children":[{"kind":"text","text":"TypeDescriptor"}]},{"kind":"text","text":"s to its parameters and return type. The parameter types and return type can be one of the predefined "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.TypeDescriptor"},"code":true,"children":[{"kind":"text","text":"TypeDescriptor"}]},{"kind":"text","text":"s, an array with component type, an executable with required parameter types or an union type."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The JavaScript sample implementation creating the "},{"kind":"code","text":"if"},{"kind":"text","text":" statement:"}]},{"kind":"code","text":"@Override\npublic Collection<? extends Snippet> createStatements(Context context) {\n    final Collection<Snippet> statements = new ArrayList<>();\n    Snippet.Builder builder = Snippet.newBuilder(\n                    \"if\",\n                    context.eval(\"js\",\n                                    \"(function (p){\\n\" +\n                                                    \"  if (p) return true ; else  return false;\\n\" +\n                                                    \"})\"),\n                    TypeDescriptor.BOOLEAN).parameterTypes(\n                                    TypeDescriptor.union(\n                                                    TypeDescriptor.STRING,\n                                                    TypeDescriptor.OBJECT,\n                                                    TypeDescriptor.NUMBER,\n                                                    TypeDescriptor.BOOLEAN));\n    statements.add(builder.build());\n    return statements;\n}"},{"kind":"paragraph","children":[{"kind":"text","text":"The R sample implementation creating the "},{"kind":"code","text":"if"},{"kind":"text","text":" statement:"}]},{"kind":"code","text":"@Override\npublic Collection<? extends Snippet> createStatements(Context context) {\n    final Collection<Snippet> statements = new ArrayList<>();\n    final TypeDescriptor numberOrBoolean = TypeDescriptor.union(\n                    TypeDescriptor.NUMBER,\n                    TypeDescriptor.BOOLEAN);\n    final TypeDescriptor arrayNumberOrBoolean = TypeDescriptor.array(\n                    numberOrBoolean);\n    Snippet.Builder builder = Snippet.newBuilder(\n                    \"if\",\n                    context.eval(\"R\",\n                                    \"function(p){\\n\" +\n                                                    \"  if (p) { return (TRUE) } else { return (FALSE) }\\n\" +\n                                                    \"}\"),\n                    TypeDescriptor.BOOLEAN).parameterTypes(\n                                    TypeDescriptor.union(\n                                                    numberOrBoolean,\n                                                    arrayNumberOrBoolean));\n    statements.add(builder.build());\n    return statements;\n}"}]},"since":"0.30","source":{"path":"org/graalvm/polyglot/tck/LanguageProvider.java","line":317}},{"id":"org.graalvm.polyglot.tck.LanguageProvider#createScripts(org.graalvm.polyglot.Context)","anchor":"createScripts(org.graalvm.polyglot.Context)","kind":"method","name":"createScripts","signature":[{"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":"Snippet","ref":"org.graalvm.polyglot.tck.Snippet"},{"kind":"punct","text":"> "},{"kind":"name","text":"createScripts"},{"kind":"punct","text":"("},{"kind":"type","text":"Context","ref":"org.graalvm.polyglot.Context","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Context.html"},{"kind":"punct","text":" "},{"kind":"param","text":"context"},{"kind":"punct","text":")"}],"params":[{"name":"context","type":[{"kind":"type","text":"Context","ref":"org.graalvm.polyglot.Context","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Context.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the context for a guest language code literal evaluation"}]}]}],"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":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Snippet","ref":"org.graalvm.polyglot.tck.Snippet"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the language scripts"}]}]},"doc":{"summary":[{"kind":"text","text":"Creates a collection of simple scripts used for instrumentation testing."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a collection of simple scripts used for instrumentation testing. Each script is represented as a function performing the script. The function must have no formal parameters but may return a result which can be asserted by "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.ResultVerifier"},"code":true,"children":[{"kind":"text","text":"ResultVerifier"}]},{"kind":"text","text":"."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The JavaScript sample implementation:"}]},{"kind":"code","text":"@Override\npublic Collection<? extends Snippet> createScripts(Context context) {\n    try {\n        final Collection<Snippet> scripts = new ArrayList<>();\n        Reader reader = new InputStreamReader(\n                        getClass().getResourceAsStream(\"sample.js\"),\n                        \"UTF-8\");\n        Source source = Source.newBuilder(\n                        \"js\",\n                        reader,\n                        \"sample.js\").build();\n        Snippet.Builder builder = Snippet.newBuilder(\n                        source.getName(),\n                        context.eval(source),\n                        TypeDescriptor.NULL);\n        scripts.add(builder.build());\n        return scripts;\n    } catch (IOException ioe) {\n        throw new RuntimeException(ioe);\n    }\n}"}]},"since":"0.30","source":{"path":"org/graalvm/polyglot/tck/LanguageProvider.java","line":354}},{"id":"org.graalvm.polyglot.tck.LanguageProvider#createInvalidSyntaxScripts(org.graalvm.polyglot.Context)","anchor":"createInvalidSyntaxScripts(org.graalvm.polyglot.Context)","kind":"method","name":"createInvalidSyntaxScripts","signature":[{"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":"Source","ref":"org.graalvm.polyglot.Source","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Source.html"},{"kind":"punct","text":"> "},{"kind":"name","text":"createInvalidSyntaxScripts"},{"kind":"punct","text":"("},{"kind":"type","text":"Context","ref":"org.graalvm.polyglot.Context","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Context.html"},{"kind":"punct","text":" "},{"kind":"param","text":"context"},{"kind":"punct","text":")"}],"params":[{"name":"context","type":[{"kind":"type","text":"Context","ref":"org.graalvm.polyglot.Context","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Context.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the context for a guest language code literal evaluation"}]}]}],"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":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Source","ref":"org.graalvm.polyglot.Source","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Source.html"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the scripts"}]}]},"doc":{"summary":[{"kind":"text","text":"Creates a collection of scripts containing a syntax error."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a collection of scripts containing a syntax error."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The JavaScript sample implementation:"}]},{"kind":"code","text":"@Override\npublic Collection<? extends Source> createInvalidSyntaxScripts(Context ctx) {\n    try {\n        final Collection scripts = new ArrayList<>();\n        Reader reader = new InputStreamReader(\n                        getClass().getResourceAsStream(\"invalidSyntax.js\"),\n                        \"UTF-8\");\n        scripts.add(Source.newBuilder(\n                        \"js\",\n                        reader,\n                        \"invalidSyntax.js\").build());\n        return scripts;\n    } catch (IOException ioe) {\n        throw new RuntimeException(ioe);\n    }\n}"}]},"since":"0.30","source":{"path":"org/graalvm/polyglot/tck/LanguageProvider.java","line":384}},{"id":"org.graalvm.polyglot.tck.LanguageProvider#createInlineScripts(org.graalvm.polyglot.Context)","anchor":"createInlineScripts(org.graalvm.polyglot.Context)","kind":"method","name":"createInlineScripts","modifiers":["default"],"signature":[{"kind":"keyword","text":"default"},{"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":"InlineSnippet","ref":"org.graalvm.polyglot.tck.InlineSnippet"},{"kind":"punct","text":"> "},{"kind":"name","text":"createInlineScripts"},{"kind":"punct","text":"("},{"kind":"type","text":"Context","ref":"org.graalvm.polyglot.Context","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Context.html"},{"kind":"punct","text":" "},{"kind":"param","text":"context"},{"kind":"punct","text":")"}],"params":[{"name":"context","type":[{"kind":"type","text":"Context","ref":"org.graalvm.polyglot.Context","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Context.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the context for a guest language code literal evaluation"}]}]}],"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":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"InlineSnippet","ref":"org.graalvm.polyglot.tck.InlineSnippet"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"A collection of inline code snippets."}]}]},"doc":{"summary":[{"kind":"text","text":"Creates a collection of inline code snippets."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a collection of inline code snippets."}]},{"kind":"paragraph","children":[{"kind":"text","text":"This method is optional, it should be implemented if "},{"kind":"code","text":"TruffleLanguage.parse(InlineParsingRequest)"},{"kind":"text","text":" is implemented. It returns an empty list by default."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The JavaScript sample implementation creating inline code snippets:"}]},{"kind":"code","text":"@Override\npublic Collection<? extends InlineSnippet> createInlineScripts(Context context) {\n    final Collection<InlineSnippet> inlineScripts = new ArrayList<>();\n    Snippet.Builder scriptBuilder = Snippet.newBuilder(\n                    \"factorial\",\n                    context.eval(\"js\",\n                                    \"(function (){\\n\" +\n                                                    \"  let factorial = function(n) {\\n\" +\n                                                    \"    let f = 1;\\n\" +\n                                                    \"    for (let i = 2; i <= n; i++) {\\n\" +\n                                                    \"      f *= i;\\n\" +\n                                                    \"    }\\n\" +\n                                                    \"  };\\n\" +\n                                                    \"  return factorial(10);\\n\" +\n                                                    \"})\"),\n                    TypeDescriptor.NUMBER);\n    InlineSnippet.Builder builder = InlineSnippet.newBuilder(\n                    scriptBuilder.build(),\n                    \"n * n\").locationPredicate((SourceSection section) -> {\n                        int line = section.getStartLine();\n                        return 3 <= line && line <= 6;\n                    });\n    inlineScripts.add(builder.build());\n    builder = InlineSnippet.newBuilder(\n                    scriptBuilder.build(),\n                    \"Math.sin(Math.PI)\");\n    inlineScripts.add(builder.build());\n    return inlineScripts;\n}"}]},"since":"0.32","source":{"path":"org/graalvm/polyglot/tck/LanguageProvider.java","line":431}}],"doc":{"summary":[{"kind":"text","text":"The "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.LanguageProvider"},"code":true,"children":[{"kind":"text","text":"LanguageProvider"}]},{"kind":"text","text":" provides factory methods for language data types, expressions, statements and scripts used for testing language inter-operability."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"The "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.LanguageProvider"},"code":true,"children":[{"kind":"text","text":"LanguageProvider"}]},{"kind":"text","text":" provides factory methods for language data types, expressions, statements and scripts used for testing language inter-operability. The "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.LanguageProvider"},"code":true,"children":[{"kind":"text","text":"LanguageProvider"}]},{"kind":"text","text":" implementations are loaded by 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":"ServiceLoader"}]},{"kind":"text","text":" and should be registered in the 'META-INF/services/org.graalvm.polyglot.tck.LanguageProvider'. See "},{"kind":"link","url":"https://github.com/oracle/graal/blob/master/truffle/docs/TCK.md","children":[{"kind":"text","text":"Test Compatibility Kit"}]},{"kind":"text","text":" for details how to add a new language provider and execute tests."}]}]},"since":"0.30","source":{"path":"org/graalvm/polyglot/tck/LanguageProvider.java","line":62}},{"id":"org.graalvm.polyglot.tck.ResultVerifier","name":"ResultVerifier","kind":"interface","language":"java","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"interface"},{"kind":"punct","text":" "},{"kind":"name","text":"ResultVerifier"},{"kind":"punct","text":" "},{"kind":"keyword","text":"extends"},{"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":"ResultVerifier.SnippetRun","ref":"org.graalvm.polyglot.tck.ResultVerifier$SnippetRun"},{"kind":"punct","text":">"}],"interfaces":[[{"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":"ResultVerifier.SnippetRun","ref":"org.graalvm.polyglot.tck.ResultVerifier$SnippetRun"},{"kind":"punct","text":">"}]],"members":[{"id":"org.graalvm.polyglot.tck.ResultVerifier#accept(org.graalvm.polyglot.tck.ResultVerifier.SnippetRun)","anchor":"accept(org.graalvm.polyglot.tck.ResultVerifier.SnippetRun)","kind":"method","name":"accept","signature":[{"kind":"keyword","text":"void"},{"kind":"punct","text":" "},{"kind":"name","text":"accept"},{"kind":"punct","text":"("},{"kind":"type","text":"ResultVerifier.SnippetRun","ref":"org.graalvm.polyglot.tck.ResultVerifier$SnippetRun"},{"kind":"punct","text":" "},{"kind":"param","text":"snippetRun"},{"kind":"punct","text":") "},{"kind":"keyword","text":"throws"},{"kind":"punct","text":" "},{"kind":"type","text":"PolyglotException","ref":"org.graalvm.polyglot.PolyglotException","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/PolyglotException.html"}],"params":[{"name":"snippetRun","type":[{"kind":"type","text":"ResultVerifier.SnippetRun","ref":"org.graalvm.polyglot.tck.ResultVerifier$SnippetRun"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the snippet execution data. The "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.ResultVerifier$SnippetRun"},"code":true,"children":[{"kind":"text","text":"SnippetRun"}]},{"kind":"text","text":" provides the actual snippet parameters, the execution result, or the "},{"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":" thrown by the execution. If the snippet execution 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":", it's converted to "},{"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":"."}]}]}],"throws":[{"type":[{"kind":"type","text":"PolyglotException","ref":"org.graalvm.polyglot.PolyglotException","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/PolyglotException.html"}],"declared":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"may propagate the "},{"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":" from the snippetRun"}]}]},{"type":[{"kind":"type","text":"AssertionError","ref":"java.lang.AssertionError","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/AssertionError.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"may 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":" as a result of a verification"}]}]}],"overrides":{"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)"},"doc":{"summary":[{"kind":"text","text":"Performs a verification of a result of a snippet execution."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Performs a verification of a result of a snippet execution. The custom "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.ResultVerifier"},"code":true,"children":[{"kind":"text","text":"ResultVerifier"}]},{"kind":"text","text":" overrides the default snippet execution verification. The default verification tests that the result type is in bounds specified by the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.Snippet"},"code":true,"children":[{"kind":"text","text":"Snippet"}]},{"kind":"text","text":". The custom "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.ResultVerifier"},"code":true,"children":[{"kind":"text","text":"ResultVerifier"}]},{"kind":"text","text":" can be used to do additional checking of a result or an execution exception throwing "},{"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":" in case of failed assertion. The custom "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.ResultVerifier"},"code":true,"children":[{"kind":"text","text":"ResultVerifier"}]},{"kind":"text","text":" can hide an expected execution exception. For example the division operator snippet may provide a custom "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.ResultVerifier"},"code":true,"children":[{"kind":"text","text":"ResultVerifier"}]},{"kind":"text","text":" hiding the execution exception for division by zero. To propagate the execution exception the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.ResultVerifier"},"code":true,"children":[{"kind":"text","text":"ResultVerifier"}]},{"kind":"text","text":" should re-throw it. The "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.ResultVerifier"},"code":true,"children":[{"kind":"text","text":"ResultVerifier"}]},{"kind":"text","text":" can be used to resolve problems in the "},{"kind":"code","text":"ErrorTypeTest"},{"kind":"text","text":" by making the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.Snippet"},"code":true,"children":[{"kind":"text","text":"Snippet"}]},{"kind":"text","text":"'s parameter(s) more generic and restrict the required value in the verifier."}]}]},"since":"0.30","source":{"path":"org/graalvm/polyglot/tck/ResultVerifier.java","line":77}},{"id":"org.graalvm.polyglot.tck.ResultVerifier#getDefaultResultVerifier()","anchor":"getDefaultResultVerifier()","kind":"method","name":"getDefaultResultVerifier","modifiers":["static"],"signature":[{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"ResultVerifier","ref":"org.graalvm.polyglot.tck.ResultVerifier"},{"kind":"punct","text":" "},{"kind":"name","text":"getDefaultResultVerifier"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"ResultVerifier","ref":"org.graalvm.polyglot.tck.ResultVerifier"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the default "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.ResultVerifier"},"code":true,"children":[{"kind":"text","text":"ResultVerifier"}]}]}]},"doc":{"summary":[{"kind":"text","text":"Creates a default "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.ResultVerifier"},"code":true,"children":[{"kind":"text","text":"ResultVerifier"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a default "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.ResultVerifier"},"code":true,"children":[{"kind":"text","text":"ResultVerifier"}]},{"kind":"text","text":". The default "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.ResultVerifier"},"code":true,"children":[{"kind":"text","text":"ResultVerifier"}]},{"kind":"text","text":" tests that the result type is in bounds specified by the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.Snippet"},"code":true,"children":[{"kind":"text","text":"Snippet"}]},{"kind":"text","text":"."}]}]},"since":"19.0","source":{"path":"org/graalvm/polyglot/tck/ResultVerifier.java","line":177}},{"id":"org.graalvm.polyglot.tck.ResultVerifier#getIdentityFunctionDefaultResultVerifier()","anchor":"getIdentityFunctionDefaultResultVerifier()","kind":"method","name":"getIdentityFunctionDefaultResultVerifier","modifiers":["static"],"signature":[{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"ResultVerifier","ref":"org.graalvm.polyglot.tck.ResultVerifier"},{"kind":"punct","text":" "},{"kind":"name","text":"getIdentityFunctionDefaultResultVerifier"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"ResultVerifier","ref":"org.graalvm.polyglot.tck.ResultVerifier"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the default "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.ResultVerifier"},"code":true,"children":[{"kind":"text","text":"ResultVerifier"}]},{"kind":"text","text":" for "},{"kind":"code","text":"IdentityFunctionTest"},{"kind":"text","text":"."}]}]},"doc":{"summary":[{"kind":"text","text":"Creates a default "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.ResultVerifier"},"code":true,"children":[{"kind":"text","text":"ResultVerifier"}]},{"kind":"text","text":" for the "},{"kind":"code","text":"IdentityFunctionTest"},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a default "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.ResultVerifier"},"code":true,"children":[{"kind":"text","text":"ResultVerifier"}]},{"kind":"text","text":" for the "},{"kind":"code","text":"IdentityFunctionTest"},{"kind":"text","text":". The returned "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.ResultVerifier"},"code":true,"children":[{"kind":"text","text":"ResultVerifier"}]},{"kind":"text","text":" tests that the identity function does not change the parameter type."}]}]},"since":"19.1.0","source":{"path":"org/graalvm/polyglot/tck/ResultVerifier.java","line":188}}],"inherited":[{"from":{"id":"java.util.function.Consumer","text":"Consumer","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Consumer.html"},"kind":"interface","members":[{"id":"java.util.function.Consumer#andThen(java.util.function.Consumer)","text":"andThen","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/Consumer.html#andThen(java.util.function.Consumer)"}]}],"doc":{"summary":[{"kind":"text","text":"Allows a custom verification of a result of a snippet execution."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Allows a custom verification of a result of a snippet execution."}]}]},"since":"0.30","source":{"path":"org/graalvm/polyglot/tck/ResultVerifier.java","line":54}},{"id":"org.graalvm.polyglot.tck.ResultVerifier$SnippetRun","name":"ResultVerifier.SnippetRun","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":"ResultVerifier.SnippetRun"}],"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":"org.graalvm.polyglot.tck.ResultVerifier","members":[{"id":"org.graalvm.polyglot.tck.ResultVerifier$SnippetRun#getParameters()","anchor":"getParameters()","kind":"method","name":"getParameters","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":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Value","ref":"org.graalvm.polyglot.Value","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Value.html"},{"kind":"punct","text":"> "},{"kind":"name","text":"getParameters"},{"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":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Value","ref":"org.graalvm.polyglot.Value","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Value.html"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the parameters"}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the actual parameters of a snippet execution."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the actual parameters of a snippet execution."}]}]},"since":"0.30","source":{"path":"org/graalvm/polyglot/tck/ResultVerifier.java","line":104}},{"id":"org.graalvm.polyglot.tck.ResultVerifier$SnippetRun#getResult()","anchor":"getResult()","kind":"method","name":"getResult","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Value","ref":"org.graalvm.polyglot.Value","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Value.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getResult"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Value","ref":"org.graalvm.polyglot.Value","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Value.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the result of a snippet execution or null in case of execution failure."}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the result of a snippet execution."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the result of a snippet execution."}]}]},"since":"0.30","source":{"path":"org/graalvm/polyglot/tck/ResultVerifier.java","line":114}},{"id":"org.graalvm.polyglot.tck.ResultVerifier$SnippetRun#getException()","anchor":"getException()","kind":"method","name":"getException","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"PolyglotException","ref":"org.graalvm.polyglot.PolyglotException","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/PolyglotException.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getException"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"PolyglotException","ref":"org.graalvm.polyglot.PolyglotException","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/PolyglotException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the "},{"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":" thrown during the execution or null in case of successful execution."}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the "},{"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":" thrown during snippet execution."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the "},{"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":" thrown during snippet execution. If the snippet execution 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":", this exception is first converted to a "},{"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":", and the resulting "},{"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":" is provided by this method."}]}]},"since":"0.30","source":{"path":"org/graalvm/polyglot/tck/ResultVerifier.java","line":128}},{"id":"org.graalvm.polyglot.tck.ResultVerifier$SnippetRun#create(org.graalvm.polyglot.tck.Snippet,java.util.List,org.graalvm.polyglot.Value)","anchor":"create(org.graalvm.polyglot.tck.Snippet,java.util.List,org.graalvm.polyglot.Value)","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":"ResultVerifier.SnippetRun","ref":"org.graalvm.polyglot.tck.ResultVerifier$SnippetRun"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"("},{"kind":"type","text":"Snippet","ref":"org.graalvm.polyglot.tck.Snippet"},{"kind":"punct","text":" "},{"kind":"param","text":"snippet"},{"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":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Value","ref":"org.graalvm.polyglot.Value","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Value.html"},{"kind":"punct","text":"> "},{"kind":"param","text":"parameters"},{"kind":"punct","text":", "},{"kind":"type","text":"Value","ref":"org.graalvm.polyglot.Value","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Value.html"},{"kind":"punct","text":" "},{"kind":"param","text":"result"},{"kind":"punct","text":")"}],"params":[{"name":"snippet","type":[{"kind":"type","text":"Snippet","ref":"org.graalvm.polyglot.tck.Snippet"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the executed "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.Snippet"},"code":true,"children":[{"kind":"text","text":"Snippet"}]}]}]},{"name":"parameters","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":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Value","ref":"org.graalvm.polyglot.Value","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Value.html"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the actual parameters of snippet execution"}]}]},{"name":"result","type":[{"kind":"type","text":"Value","ref":"org.graalvm.polyglot.Value","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Value.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the result of snippet execution"}]}]}],"returns":{"type":[{"kind":"type","text":"ResultVerifier.SnippetRun","ref":"org.graalvm.polyglot.tck.ResultVerifier$SnippetRun"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.ResultVerifier$SnippetRun"},"code":true,"children":[{"kind":"text","text":"SnippetRun"}]}]}]},"doc":{"summary":[{"kind":"text","text":"Creates a new "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.ResultVerifier$SnippetRun"},"code":true,"children":[{"kind":"text","text":"SnippetRun"}]},{"kind":"text","text":" for successful execution."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a new "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.ResultVerifier$SnippetRun"},"code":true,"children":[{"kind":"text","text":"SnippetRun"}]},{"kind":"text","text":" for successful execution."}]}]},"since":"0.30","source":{"path":"org/graalvm/polyglot/tck/ResultVerifier.java","line":145}},{"id":"org.graalvm.polyglot.tck.ResultVerifier$SnippetRun#create(org.graalvm.polyglot.tck.Snippet,java.util.List,org.graalvm.polyglot.PolyglotException)","anchor":"create(org.graalvm.polyglot.tck.Snippet,java.util.List,org.graalvm.polyglot.PolyglotException)","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":"ResultVerifier.SnippetRun","ref":"org.graalvm.polyglot.tck.ResultVerifier$SnippetRun"},{"kind":"punct","text":" "},{"kind":"name","text":"create"},{"kind":"punct","text":"("},{"kind":"type","text":"Snippet","ref":"org.graalvm.polyglot.tck.Snippet"},{"kind":"punct","text":" "},{"kind":"param","text":"snippet"},{"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":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Value","ref":"org.graalvm.polyglot.Value","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Value.html"},{"kind":"punct","text":"> "},{"kind":"param","text":"parameters"},{"kind":"punct","text":", "},{"kind":"type","text":"PolyglotException","ref":"org.graalvm.polyglot.PolyglotException","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/PolyglotException.html"},{"kind":"punct","text":" "},{"kind":"param","text":"exception"},{"kind":"punct","text":")"}],"params":[{"name":"snippet","type":[{"kind":"type","text":"Snippet","ref":"org.graalvm.polyglot.tck.Snippet"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the executed "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.Snippet"},"code":true,"children":[{"kind":"text","text":"Snippet"}]}]}]},{"name":"parameters","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":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"Value","ref":"org.graalvm.polyglot.Value","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Value.html"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the actual parameters of snippet execution"}]}]},{"name":"exception","type":[{"kind":"type","text":"PolyglotException","ref":"org.graalvm.polyglot.PolyglotException","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/PolyglotException.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the "},{"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":" thrown during snippet execution"}]}]}],"returns":{"type":[{"kind":"type","text":"ResultVerifier.SnippetRun","ref":"org.graalvm.polyglot.tck.ResultVerifier$SnippetRun"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.ResultVerifier$SnippetRun"},"code":true,"children":[{"kind":"text","text":"SnippetRun"}]}]}]},"doc":{"summary":[{"kind":"text","text":"Creates a new "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.ResultVerifier$SnippetRun"},"code":true,"children":[{"kind":"text","text":"SnippetRun"}]},{"kind":"text","text":" for failed execution."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a new "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.ResultVerifier$SnippetRun"},"code":true,"children":[{"kind":"text","text":"SnippetRun"}]},{"kind":"text","text":" for failed execution."}]}]},"since":"0.30","source":{"path":"org/graalvm/polyglot/tck/ResultVerifier.java","line":161}}],"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#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","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 the test execution data."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Provides the test execution data."}]}]},"since":"0.30","source":{"path":"org/graalvm/polyglot/tck/ResultVerifier.java","line":85}},{"id":"org.graalvm.polyglot.tck.Snippet","name":"Snippet","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":"Snippet"}],"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":"org.graalvm.polyglot.tck.Snippet#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 "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.Snippet"},"code":true,"children":[{"kind":"text","text":"Snippet"}]},{"kind":"text","text":" identifier"}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the identifier of a snippet."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the identifier of a snippet. The "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.Snippet"},"code":true,"children":[{"kind":"text","text":"Snippet"}]},{"kind":"text","text":"s from a single "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.LanguageProvider"},"code":true,"children":[{"kind":"text","text":"LanguageProvider"}]},{"kind":"text","text":" with the same identifier but different types are treated as overloads."}]}]},"since":"0.30","source":{"path":"org/graalvm/polyglot/tck/Snippet.java","line":89}},{"id":"org.graalvm.polyglot.tck.Snippet#getExecutableValue()","anchor":"getExecutableValue()","kind":"method","name":"getExecutableValue","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Value","ref":"org.graalvm.polyglot.Value","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Value.html"},{"kind":"punct","text":" "},{"kind":"name","text":"getExecutableValue"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Value","ref":"org.graalvm.polyglot.Value","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Value.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the executable "},{"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"}]}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the function executing the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.Snippet"},"code":true,"children":[{"kind":"text","text":"Snippet"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the function executing the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.Snippet"},"code":true,"children":[{"kind":"text","text":"Snippet"}]},{"kind":"text","text":"."}]}]},"since":"0.30","source":{"path":"org/graalvm/polyglot/tck/Snippet.java","line":99}},{"id":"org.graalvm.polyglot.tck.Snippet#getReturnType()","anchor":"getReturnType()","kind":"method","name":"getReturnType","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"TypeDescriptor","ref":"org.graalvm.polyglot.tck.TypeDescriptor"},{"kind":"punct","text":" "},{"kind":"name","text":"getReturnType"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"TypeDescriptor","ref":"org.graalvm.polyglot.tck.TypeDescriptor"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the return type"}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.Snippet"},"code":true,"children":[{"kind":"text","text":"Snippet"}]},{"kind":"text","text":" return type."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.Snippet"},"code":true,"children":[{"kind":"text","text":"Snippet"}]},{"kind":"text","text":" return type."}]}]},"since":"0.30","source":{"path":"org/graalvm/polyglot/tck/Snippet.java","line":109}},{"id":"org.graalvm.polyglot.tck.Snippet#getParameterTypes()","anchor":"getParameterTypes()","kind":"method","name":"getParameterTypes","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":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"TypeDescriptor","ref":"org.graalvm.polyglot.tck.TypeDescriptor"},{"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":"keyword","text":"extends"},{"kind":"punct","text":" "},{"kind":"type","text":"TypeDescriptor","ref":"org.graalvm.polyglot.tck.TypeDescriptor"},{"kind":"punct","text":">"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the parameter types"}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the types of "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.Snippet"},"code":true,"children":[{"kind":"text","text":"Snippet"}]},{"kind":"text","text":" formal parameters."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the types of "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.Snippet"},"code":true,"children":[{"kind":"text","text":"Snippet"}]},{"kind":"text","text":" formal parameters."}]}]},"since":"0.30","source":{"path":"org/graalvm/polyglot/tck/Snippet.java","line":119}},{"id":"org.graalvm.polyglot.tck.Snippet#getResultVerifier()","anchor":"getResultVerifier()","kind":"method","name":"getResultVerifier","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"ResultVerifier","ref":"org.graalvm.polyglot.tck.ResultVerifier"},{"kind":"punct","text":" "},{"kind":"name","text":"getResultVerifier"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"ResultVerifier","ref":"org.graalvm.polyglot.tck.ResultVerifier"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"either a custom or the default "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.ResultVerifier"},"code":true,"children":[{"kind":"text","text":"ResultVerifier"}]},{"kind":"text","text":"."}]}]},"doc":{"summary":[{"kind":"text","text":"Returns the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.ResultVerifier"},"code":true,"children":[{"kind":"text","text":"ResultVerifier"}]},{"kind":"text","text":" to verify the execution result."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Returns the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.ResultVerifier"},"code":true,"children":[{"kind":"text","text":"ResultVerifier"}]},{"kind":"text","text":" to verify the execution result."}]}]},"since":"0.30","source":{"path":"org/graalvm/polyglot/tck/Snippet.java","line":130}},{"id":"org.graalvm.polyglot.tck.Snippet#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.30","source":{"path":"org/graalvm/polyglot/tck/Snippet.java","line":139}},{"id":"org.graalvm.polyglot.tck.Snippet#newBuilder(java.lang.String,org.graalvm.polyglot.Value,org.graalvm.polyglot.tck.TypeDescriptor)","anchor":"newBuilder(java.lang.String,org.graalvm.polyglot.Value,org.graalvm.polyglot.tck.TypeDescriptor)","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":"Snippet.Builder","ref":"org.graalvm.polyglot.tck.Snippet$Builder"},{"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":"id"},{"kind":"punct","text":", "},{"kind":"type","text":"Value","ref":"org.graalvm.polyglot.Value","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Value.html"},{"kind":"punct","text":" "},{"kind":"param","text":"executableValue"},{"kind":"punct","text":", "},{"kind":"type","text":"TypeDescriptor","ref":"org.graalvm.polyglot.tck.TypeDescriptor"},{"kind":"punct","text":" "},{"kind":"param","text":"executableReturnType"},{"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 "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.Snippet"},"code":true,"children":[{"kind":"text","text":"Snippet"}]},{"kind":"text","text":" identifier The "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.Snippet"},"code":true,"children":[{"kind":"text","text":"Snippet"}]},{"kind":"text","text":"s from a single "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.LanguageProvider"},"code":true,"children":[{"kind":"text","text":"LanguageProvider"}]},{"kind":"text","text":" with the same identifier but different types are treated as overloads."}]}]},{"name":"executableValue","type":[{"kind":"type","text":"Value","ref":"org.graalvm.polyglot.Value","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Value.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the executable "},{"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":" used to execute the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.Snippet"},"code":true,"children":[{"kind":"text","text":"Snippet"}]}]}]},{"name":"executableReturnType","type":[{"kind":"type","text":"TypeDescriptor","ref":"org.graalvm.polyglot.tck.TypeDescriptor"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.Snippet"},"code":true,"children":[{"kind":"text","text":"Snippet"}]},{"kind":"text","text":" return type"}]}]}],"returns":{"type":[{"kind":"type","text":"Snippet.Builder","ref":"org.graalvm.polyglot.tck.Snippet$Builder"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the new "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.Snippet$Builder"},"code":true,"children":[{"kind":"text","text":"Builder"}]}]}]},"doc":{"summary":[{"kind":"text","text":"Creates a new "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.Snippet"},"code":true,"children":[{"kind":"text","text":"Snippet"}]},{"kind":"text","text":" builder object."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a new "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.Snippet"},"code":true,"children":[{"kind":"text","text":"Snippet"}]},{"kind":"text","text":" builder object."}]}]},"since":"0.30","source":{"path":"org/graalvm/polyglot/tck/Snippet.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#equals(java.lang.Object)","text":"equals","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"},{"id":"java.lang.Object#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","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 unit of execution with assigned parameters and result types."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"The unit of execution with assigned parameters and result types. The "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.Snippet"},"code":true,"children":[{"kind":"text","text":"Snippet"}]},{"kind":"text","text":" represents an execution of value constructor, statement, expression and script. The "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.Snippet"},"code":true,"children":[{"kind":"text","text":"Snippet"}]},{"kind":"text","text":" provides parameter(s) and return types used to compose the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.Snippet"},"code":true,"children":[{"kind":"text","text":"Snippet"}]},{"kind":"text","text":"s."}]}]},"since":"0.30","source":{"path":"org/graalvm/polyglot/tck/Snippet.java","line":58}},{"id":"org.graalvm.polyglot.tck.Snippet$Builder","name":"Snippet.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":"Snippet.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":"org.graalvm.polyglot.tck.Snippet","members":[{"id":"org.graalvm.polyglot.tck.Snippet$Builder#parameterTypes(org.graalvm.polyglot.tck.TypeDescriptor...)","anchor":"parameterTypes(org.graalvm.polyglot.tck.TypeDescriptor...)","kind":"method","name":"parameterTypes","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Snippet.Builder","ref":"org.graalvm.polyglot.tck.Snippet$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"parameterTypes"},{"kind":"punct","text":"("},{"kind":"type","text":"TypeDescriptor","ref":"org.graalvm.polyglot.tck.TypeDescriptor"},{"kind":"punct","text":"... "},{"kind":"param","text":"parameterTypes"},{"kind":"punct","text":")"}],"params":[{"name":"parameterTypes","type":[{"kind":"type","text":"TypeDescriptor","ref":"org.graalvm.polyglot.tck.TypeDescriptor"},{"kind":"punct","text":"..."}],"varargs":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the types of "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.Snippet"},"code":true,"children":[{"kind":"text","text":"Snippet"}]},{"kind":"text","text":"'s parameters"}]}]}],"returns":{"type":[{"kind":"type","text":"Snippet.Builder","ref":"org.graalvm.polyglot.tck.Snippet$Builder"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"this "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.Snippet$Builder"},"code":true,"children":[{"kind":"text","text":"Builder"}]}]}]},"doc":{"summary":[{"kind":"text","text":"Sets the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.Snippet"},"code":true,"children":[{"kind":"text","text":"Snippet"}]},{"kind":"text","text":" formal parameter types."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Sets the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.Snippet"},"code":true,"children":[{"kind":"text","text":"Snippet"}]},{"kind":"text","text":" formal parameter types."}]}]},"since":"0.30","source":{"path":"org/graalvm/polyglot/tck/Snippet.java","line":194}},{"id":"org.graalvm.polyglot.tck.Snippet$Builder#resultVerifier(org.graalvm.polyglot.tck.ResultVerifier)","anchor":"resultVerifier(org.graalvm.polyglot.tck.ResultVerifier)","kind":"method","name":"resultVerifier","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Snippet.Builder","ref":"org.graalvm.polyglot.tck.Snippet$Builder"},{"kind":"punct","text":" "},{"kind":"name","text":"resultVerifier"},{"kind":"punct","text":"("},{"kind":"type","text":"ResultVerifier","ref":"org.graalvm.polyglot.tck.ResultVerifier"},{"kind":"punct","text":" "},{"kind":"param","text":"resultVerifier"},{"kind":"punct","text":")"}],"params":[{"name":"resultVerifier","type":[{"kind":"type","text":"ResultVerifier","ref":"org.graalvm.polyglot.tck.ResultVerifier"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the custom "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.ResultVerifier"},"code":true,"children":[{"kind":"text","text":"ResultVerifier"}]}]}]}],"returns":{"type":[{"kind":"type","text":"Snippet.Builder","ref":"org.graalvm.polyglot.tck.Snippet$Builder"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"this "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.Snippet$Builder"},"code":true,"children":[{"kind":"text","text":"Builder"}]}]}]},"doc":{"summary":[{"kind":"text","text":"Sets a custom verifier of a result of the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.Snippet"},"code":true,"children":[{"kind":"text","text":"Snippet"}]},{"kind":"text","text":" execution."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Sets a custom verifier of a result of the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.Snippet"},"code":true,"children":[{"kind":"text","text":"Snippet"}]},{"kind":"text","text":" execution."}]}]},"since":"0.30","source":{"path":"org/graalvm/polyglot/tck/Snippet.java","line":208}},{"id":"org.graalvm.polyglot.tck.Snippet$Builder#build()","anchor":"build()","kind":"method","name":"build","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"Snippet","ref":"org.graalvm.polyglot.tck.Snippet"},{"kind":"punct","text":" "},{"kind":"name","text":"build"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"type","text":"Snippet","ref":"org.graalvm.polyglot.tck.Snippet"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.Snippet"},"code":true,"children":[{"kind":"text","text":"Snippet"}]}]}]},"doc":{"summary":[{"kind":"text","text":"Creates a new "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.Snippet"},"code":true,"children":[{"kind":"text","text":"Snippet"}]},{"kind":"text","text":" configured by this "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.Snippet$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":"org.graalvm.polyglot.tck.Snippet"},"code":true,"children":[{"kind":"text","text":"Snippet"}]},{"kind":"text","text":" configured by this "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.Snippet$Builder"},"code":true,"children":[{"kind":"text","text":"Builder"}]},{"kind":"text","text":"."}]}]},"since":"0.30","source":{"path":"org/graalvm/polyglot/tck/Snippet.java","line":219}}],"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#getClass()","text":"getClass","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()"},{"id":"java.lang.Object#hashCode()","text":"hashCode","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()"},{"id":"java.lang.Object#notify()","text":"notify","url":"https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()"},{"id":"java.lang.Object#notifyAll()","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 builder of a "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.Snippet"},"code":true,"children":[{"kind":"text","text":"Snippet"}]},{"kind":"text","text":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"The builder of a "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.Snippet"},"code":true,"children":[{"kind":"text","text":"Snippet"}]},{"kind":"text","text":"."}]}]},"since":"0.30","source":{"path":"org/graalvm/polyglot/tck/Snippet.java","line":167}},{"id":"org.graalvm.polyglot.tck.TypeDescriptor","name":"TypeDescriptor","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":"TypeDescriptor"}],"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":"org.graalvm.polyglot.tck.TypeDescriptor#NULL","anchor":"NULL","kind":"field","name":"NULL","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":"TypeDescriptor","ref":"org.graalvm.polyglot.tck.TypeDescriptor"},{"kind":"punct","text":" "},{"kind":"name","text":"NULL"}],"type":[{"kind":"type","text":"TypeDescriptor","ref":"org.graalvm.polyglot.tck.TypeDescriptor"}],"doc":{"summary":[{"kind":"text","text":"The NULL type represents a type of null or undefined value."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"The NULL type represents a type of null or undefined value."}]}]},"since":"0.30","source":{"path":"org/graalvm/polyglot/tck/TypeDescriptor.java","line":76}},{"id":"org.graalvm.polyglot.tck.TypeDescriptor#BOOLEAN","anchor":"BOOLEAN","kind":"field","name":"BOOLEAN","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":"TypeDescriptor","ref":"org.graalvm.polyglot.tck.TypeDescriptor"},{"kind":"punct","text":" "},{"kind":"name","text":"BOOLEAN"}],"type":[{"kind":"type","text":"TypeDescriptor","ref":"org.graalvm.polyglot.tck.TypeDescriptor"}],"doc":{"summary":[{"kind":"text","text":"Represents a boolean type."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Represents a boolean type."}]}]},"since":"0.30","source":{"path":"org/graalvm/polyglot/tck/TypeDescriptor.java","line":83}},{"id":"org.graalvm.polyglot.tck.TypeDescriptor#NUMBER","anchor":"NUMBER","kind":"field","name":"NUMBER","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":"TypeDescriptor","ref":"org.graalvm.polyglot.tck.TypeDescriptor"},{"kind":"punct","text":" "},{"kind":"name","text":"NUMBER"}],"type":[{"kind":"type","text":"TypeDescriptor","ref":"org.graalvm.polyglot.tck.TypeDescriptor"}],"doc":{"summary":[{"kind":"text","text":"Represents a numeric type."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Represents a numeric type."}]}]},"since":"0.30","source":{"path":"org/graalvm/polyglot/tck/TypeDescriptor.java","line":90}},{"id":"org.graalvm.polyglot.tck.TypeDescriptor#STRING","anchor":"STRING","kind":"field","name":"STRING","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":"TypeDescriptor","ref":"org.graalvm.polyglot.tck.TypeDescriptor"},{"kind":"punct","text":" "},{"kind":"name","text":"STRING"}],"type":[{"kind":"type","text":"TypeDescriptor","ref":"org.graalvm.polyglot.tck.TypeDescriptor"}],"doc":{"summary":[{"kind":"text","text":"Represents a string type."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Represents a string type."}]}]},"since":"0.30","source":{"path":"org/graalvm/polyglot/tck/TypeDescriptor.java","line":97}},{"id":"org.graalvm.polyglot.tck.TypeDescriptor#ITERABLE","anchor":"ITERABLE","kind":"field","name":"ITERABLE","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":"TypeDescriptor","ref":"org.graalvm.polyglot.tck.TypeDescriptor"},{"kind":"punct","text":" "},{"kind":"name","text":"ITERABLE"}],"type":[{"kind":"type","text":"TypeDescriptor","ref":"org.graalvm.polyglot.tck.TypeDescriptor"}],"doc":{"summary":[{"kind":"text","text":"Represents an iterable with any content type."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Represents an iterable with any content type. Any iterable type, including those with content type, is assignable to this type. This iterable type is not assignable to any iterable type having a content type."}]}]},"since":"21.1","source":{"path":"org/graalvm/polyglot/tck/TypeDescriptor.java","line":109}},{"id":"org.graalvm.polyglot.tck.TypeDescriptor#ITERATOR","anchor":"ITERATOR","kind":"field","name":"ITERATOR","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":"TypeDescriptor","ref":"org.graalvm.polyglot.tck.TypeDescriptor"},{"kind":"punct","text":" "},{"kind":"name","text":"ITERATOR"}],"type":[{"kind":"type","text":"TypeDescriptor","ref":"org.graalvm.polyglot.tck.TypeDescriptor"}],"doc":{"summary":[{"kind":"text","text":"Represents an iterator with any content type."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Represents an iterator with any content type. Any iterator type, including those with content type, is assignable to this type. This iterator type is not assignable to any iterator type having a content type."}]}]},"since":"21.1","source":{"path":"org/graalvm/polyglot/tck/TypeDescriptor.java","line":121}},{"id":"org.graalvm.polyglot.tck.TypeDescriptor#HASH","anchor":"HASH","kind":"field","name":"HASH","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":"TypeDescriptor","ref":"org.graalvm.polyglot.tck.TypeDescriptor"},{"kind":"punct","text":" "},{"kind":"name","text":"HASH"}],"type":[{"kind":"type","text":"TypeDescriptor","ref":"org.graalvm.polyglot.tck.TypeDescriptor"}],"doc":{"summary":[{"kind":"text","text":"Represents a hash map with any key type and any value type."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Represents a hash map with any key type and any value type. Any hash map type, including those with specified key and value types, is assignable to this type. This hash map type is not assignable to any hash map type with specified key or value types."}]}],"see":[[{"kind":"link","target":{"id":"org.graalvm.polyglot.Value#hasHashEntries()","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Value.html#hasHashEntries()"},"code":true,"children":[{"kind":"text","text":"Value.hasHashEntries()"}]}]]},"since":"21.1","source":{"path":"org/graalvm/polyglot/tck/TypeDescriptor.java","line":133}},{"id":"org.graalvm.polyglot.tck.TypeDescriptor#OBJECT","anchor":"OBJECT","kind":"field","name":"OBJECT","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":"TypeDescriptor","ref":"org.graalvm.polyglot.tck.TypeDescriptor"},{"kind":"punct","text":" "},{"kind":"name","text":"OBJECT"}],"type":[{"kind":"type","text":"TypeDescriptor","ref":"org.graalvm.polyglot.tck.TypeDescriptor"}],"doc":{"summary":[{"kind":"text","text":"Represents an object created by a guest language."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Represents an object created by a guest language."}]}]},"since":"0.30","source":{"path":"org/graalvm/polyglot/tck/TypeDescriptor.java","line":141}},{"id":"org.graalvm.polyglot.tck.TypeDescriptor#ARRAY","anchor":"ARRAY","kind":"field","name":"ARRAY","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":"TypeDescriptor","ref":"org.graalvm.polyglot.tck.TypeDescriptor"},{"kind":"punct","text":" "},{"kind":"name","text":"ARRAY"}],"type":[{"kind":"type","text":"TypeDescriptor","ref":"org.graalvm.polyglot.tck.TypeDescriptor"}],"doc":{"summary":[{"kind":"text","text":"Represents an array with any content type."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Represents an array with any content type. Any array type, including those with content type, is assignable to this type. This array type is not assignable to any array type having a content type."}]}]},"since":"0.30","source":{"path":"org/graalvm/polyglot/tck/TypeDescriptor.java","line":151}},{"id":"org.graalvm.polyglot.tck.TypeDescriptor#HOST_OBJECT","anchor":"HOST_OBJECT","kind":"field","name":"HOST_OBJECT","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":"TypeDescriptor","ref":"org.graalvm.polyglot.tck.TypeDescriptor"},{"kind":"punct","text":" "},{"kind":"name","text":"HOST_OBJECT"}],"type":[{"kind":"type","text":"TypeDescriptor","ref":"org.graalvm.polyglot.tck.TypeDescriptor"}],"doc":{"summary":[{"kind":"text","text":"Represents a host object."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Represents a host object."}]}]},"since":"0.30","source":{"path":"org/graalvm/polyglot/tck/TypeDescriptor.java","line":163}},{"id":"org.graalvm.polyglot.tck.TypeDescriptor#NATIVE_POINTER","anchor":"NATIVE_POINTER","kind":"field","name":"NATIVE_POINTER","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":"TypeDescriptor","ref":"org.graalvm.polyglot.tck.TypeDescriptor"},{"kind":"punct","text":" "},{"kind":"name","text":"NATIVE_POINTER"}],"type":[{"kind":"type","text":"TypeDescriptor","ref":"org.graalvm.polyglot.tck.TypeDescriptor"}],"doc":{"summary":[{"kind":"text","text":"Represents a native pointer."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Represents a native pointer."}]}]},"since":"0.30","source":{"path":"org/graalvm/polyglot/tck/TypeDescriptor.java","line":170}},{"id":"org.graalvm.polyglot.tck.TypeDescriptor#DATE","anchor":"DATE","kind":"field","name":"DATE","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":"TypeDescriptor","ref":"org.graalvm.polyglot.tck.TypeDescriptor"},{"kind":"punct","text":" "},{"kind":"name","text":"DATE"}],"type":[{"kind":"type","text":"TypeDescriptor","ref":"org.graalvm.polyglot.tck.TypeDescriptor"}],"doc":{"summary":[{"kind":"text","text":"Type descriptor for date."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Type descriptor for date."}]}]},"since":"20.0","source":{"path":"org/graalvm/polyglot/tck/TypeDescriptor.java","line":178}},{"id":"org.graalvm.polyglot.tck.TypeDescriptor#TIME","anchor":"TIME","kind":"field","name":"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":"TypeDescriptor","ref":"org.graalvm.polyglot.tck.TypeDescriptor"},{"kind":"punct","text":" "},{"kind":"name","text":"TIME"}],"type":[{"kind":"type","text":"TypeDescriptor","ref":"org.graalvm.polyglot.tck.TypeDescriptor"}],"doc":{"summary":[{"kind":"text","text":"Type descriptor for time."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Type descriptor for time."}]}]},"since":"20.0","source":{"path":"org/graalvm/polyglot/tck/TypeDescriptor.java","line":186}},{"id":"org.graalvm.polyglot.tck.TypeDescriptor#TIME_ZONE","anchor":"TIME_ZONE","kind":"field","name":"TIME_ZONE","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":"TypeDescriptor","ref":"org.graalvm.polyglot.tck.TypeDescriptor"},{"kind":"punct","text":" "},{"kind":"name","text":"TIME_ZONE"}],"type":[{"kind":"type","text":"TypeDescriptor","ref":"org.graalvm.polyglot.tck.TypeDescriptor"}],"doc":{"summary":[{"kind":"text","text":"Type descriptor for time zone."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Type descriptor for time zone."}]}]},"since":"20.0","source":{"path":"org/graalvm/polyglot/tck/TypeDescriptor.java","line":194}},{"id":"org.graalvm.polyglot.tck.TypeDescriptor#DURATION","anchor":"DURATION","kind":"field","name":"DURATION","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":"TypeDescriptor","ref":"org.graalvm.polyglot.tck.TypeDescriptor"},{"kind":"punct","text":" "},{"kind":"name","text":"DURATION"}],"type":[{"kind":"type","text":"TypeDescriptor","ref":"org.graalvm.polyglot.tck.TypeDescriptor"}],"doc":{"summary":[{"kind":"text","text":"Type descriptor for duration."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Type descriptor for duration."}]}]},"since":"20.0","source":{"path":"org/graalvm/polyglot/tck/TypeDescriptor.java","line":202}},{"id":"org.graalvm.polyglot.tck.TypeDescriptor#META_OBJECT","anchor":"META_OBJECT","kind":"field","name":"META_OBJECT","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":"TypeDescriptor","ref":"org.graalvm.polyglot.tck.TypeDescriptor"},{"kind":"punct","text":" "},{"kind":"name","text":"META_OBJECT"}],"type":[{"kind":"type","text":"TypeDescriptor","ref":"org.graalvm.polyglot.tck.TypeDescriptor"}],"doc":{"summary":[{"kind":"text","text":"Type descriptor for metaobjects."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Type descriptor for metaobjects."}]}]},"since":"20.0","source":{"path":"org/graalvm/polyglot/tck/TypeDescriptor.java","line":210}},{"id":"org.graalvm.polyglot.tck.TypeDescriptor#EXCEPTION","anchor":"EXCEPTION","kind":"field","name":"EXCEPTION","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":"TypeDescriptor","ref":"org.graalvm.polyglot.tck.TypeDescriptor"},{"kind":"punct","text":" "},{"kind":"name","text":"EXCEPTION"}],"type":[{"kind":"type","text":"TypeDescriptor","ref":"org.graalvm.polyglot.tck.TypeDescriptor"}],"doc":{"summary":[{"kind":"text","text":"Type descriptor for exception."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Type descriptor for exception."}]}],"see":[[{"kind":"link","target":{"id":"org.graalvm.polyglot.Value#isException()","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Value.html#isException()"},"code":true,"children":[{"kind":"text","text":"Value.isException()"}]}]]},"since":"19.3","source":{"path":"org/graalvm/polyglot/tck/TypeDescriptor.java","line":218}},{"id":"org.graalvm.polyglot.tck.TypeDescriptor#EXECUTABLE","anchor":"EXECUTABLE","kind":"field","name":"EXECUTABLE","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":"TypeDescriptor","ref":"org.graalvm.polyglot.tck.TypeDescriptor"},{"kind":"punct","text":" "},{"kind":"name","text":"EXECUTABLE"}],"type":[{"kind":"type","text":"TypeDescriptor","ref":"org.graalvm.polyglot.tck.TypeDescriptor"}],"doc":{"summary":[{"kind":"text","text":"Represents an executable type returning any type and accepting any number of parameters of any type."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Represents an executable type returning any type and accepting any number of parameters of any type. To create an executable type with concrete types use "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.TypeDescriptor#executable(org.graalvm.polyglot.tck.TypeDescriptor,org.graalvm.polyglot.tck.TypeDescriptor...)"},"code":true,"children":[{"kind":"text","text":"TypeDescriptor.executable(org.graalvm.polyglot.tck.TypeDescriptor, org.graalvm.polyglot.tck.TypeDescriptor...)"}]},{"kind":"text","text":" . This type can be used for creating value constructors but should not be used for specifying expressions or statements parameter types as no other executable is assignable to it."}]},{"kind":"paragraph","children":[{"kind":"text","text":"The JavaScript sample usage for no argument function constructor:"}]},{"kind":"code","text":"@Override\npublic Collection<? extends Snippet> createValueConstructors(Context context) {\n    return Collections.singleton(Snippet.newBuilder(\n                    \"function\",\n                    context.eval(\"js\", \"(function(){ return function(){}})\"),\n                    TypeDescriptor.EXECUTABLE).build());\n}"}]},"since":"0.30","source":{"path":"org/graalvm/polyglot/tck/TypeDescriptor.java","line":243}},{"id":"org.graalvm.polyglot.tck.TypeDescriptor#EXECUTABLE_ANY","anchor":"EXECUTABLE_ANY","kind":"field","name":"EXECUTABLE_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":"TypeDescriptor","ref":"org.graalvm.polyglot.tck.TypeDescriptor"},{"kind":"punct","text":" "},{"kind":"name","text":"EXECUTABLE_ANY"}],"type":[{"kind":"type","text":"TypeDescriptor","ref":"org.graalvm.polyglot.tck.TypeDescriptor"}],"doc":{"summary":[{"kind":"text","text":"Represents a raw executable type."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Represents a raw executable type. Any executable can be assigned into the raw executable type, but the raw executable type cannot be assigned to any other executable. To create an executable type with concrete types use "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.TypeDescriptor#executable(org.graalvm.polyglot.tck.TypeDescriptor,org.graalvm.polyglot.tck.TypeDescriptor...)"},"code":true,"children":[{"kind":"text","text":"TypeDescriptor.executable(org.graalvm.polyglot.tck.TypeDescriptor, org.graalvm.polyglot.tck.TypeDescriptor...)"}]},{"kind":"text","text":" . This type can be used for specifying expressions or statements parameter types when the passed executable is actually not invoked."}]},{"kind":"code","text":"@Override\npublic Collection<? extends Snippet> createExpressions(Context context) {\n    final Collection<Snippet> expressions = new ArrayList<>();\n    final TypeDescriptor numeric = TypeDescriptor.union(\n                    TypeDescriptor.NUMBER,\n                    TypeDescriptor.BOOLEAN);\n    final TypeDescriptor nonNumeric = TypeDescriptor.union(\n                    TypeDescriptor.STRING,\n                    TypeDescriptor.OBJECT,\n                    TypeDescriptor.ARRAY,\n                    TypeDescriptor.EXECUTABLE_ANY);\n    Snippet.Builder builder = Snippet.newBuilder(\n                    \"+\",\n                    context.eval(\"js\",\n                                    \"(function (a, b){ return a + b;})\"),\n                    TypeDescriptor.NUMBER).parameterTypes(numeric, numeric);\n    expressions.add(builder.build());\n    builder = Snippet.newBuilder(\n                    \"+\",\n                    context.eval(\"js\",\n                                    \"(function (a, b){ return a + b;})\"),\n                    TypeDescriptor.STRING).parameterTypes(nonNumeric, TypeDescriptor.ANY);\n    expressions.add(builder.build());\n    builder = Snippet.newBuilder(\n                    \"+\",\n                    context.eval(\"js\",\n                                    \"(function (a, b){ return a + b;})\"),\n                    TypeDescriptor.STRING).parameterTypes(TypeDescriptor.ANY, nonNumeric);\n    expressions.add(builder.build());\n    return expressions;\n}"}],"see":[[{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.TypeDescriptor#EXECUTABLE"},"code":true,"children":[{"kind":"text","text":"TypeDescriptor.EXECUTABLE"}]}]]},"since":"19.0","source":{"path":"org/graalvm/polyglot/tck/TypeDescriptor.java","line":290}},{"id":"org.graalvm.polyglot.tck.TypeDescriptor#INSTANTIABLE","anchor":"INSTANTIABLE","kind":"field","name":"INSTANTIABLE","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":"TypeDescriptor","ref":"org.graalvm.polyglot.tck.TypeDescriptor"},{"kind":"punct","text":" "},{"kind":"name","text":"INSTANTIABLE"}],"type":[{"kind":"type","text":"TypeDescriptor","ref":"org.graalvm.polyglot.tck.TypeDescriptor"}],"doc":{"summary":[{"kind":"text","text":"Represents an instantiable type accepting any number of parameters of any type."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Represents an instantiable type accepting any number of parameters of any type. To create an instantiable type with concrete parameter types use "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.TypeDescriptor#instantiable(org.graalvm.polyglot.tck.TypeDescriptor,boolean,org.graalvm.polyglot.tck.TypeDescriptor...)"},"code":true,"children":[{"kind":"text","text":"TypeDescriptor.instantiable(org.graalvm.polyglot.tck.TypeDescriptor, boolean, org.graalvm.polyglot.tck.TypeDescriptor...)"}]},{"kind":"text","text":" . This type can be used for creating value constructors but should not be used for specifying expressions or statements parameter types as no other instantiable is assignable to it."}]}]},"since":"19.0","source":{"path":"org/graalvm/polyglot/tck/TypeDescriptor.java","line":303}},{"id":"org.graalvm.polyglot.tck.TypeDescriptor#INSTANTIABLE_ANY","anchor":"INSTANTIABLE_ANY","kind":"field","name":"INSTANTIABLE_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":"TypeDescriptor","ref":"org.graalvm.polyglot.tck.TypeDescriptor"},{"kind":"punct","text":" "},{"kind":"name","text":"INSTANTIABLE_ANY"}],"type":[{"kind":"type","text":"TypeDescriptor","ref":"org.graalvm.polyglot.tck.TypeDescriptor"}],"doc":{"summary":[{"kind":"text","text":"Represents a raw instantiable type."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Represents a raw instantiable type. Any instantiable can be assigned into this raw instantiable type, but the raw instantiable type cannot be assigned to any other instantiable. To create an instantiable type with concrete types use "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.TypeDescriptor#instantiable(org.graalvm.polyglot.tck.TypeDescriptor,boolean,org.graalvm.polyglot.tck.TypeDescriptor...)"},"code":true,"children":[{"kind":"text","text":"TypeDescriptor.instantiable(org.graalvm.polyglot.tck.TypeDescriptor, boolean, org.graalvm.polyglot.tck.TypeDescriptor...)"}]},{"kind":"text","text":" . This type can be used for specifying expressions or statements parameter types when the passed instantiable is actually not invoked."}]}],"see":[[{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.TypeDescriptor#INSTANTIABLE"},"code":true,"children":[{"kind":"text","text":"TypeDescriptor.INSTANTIABLE"}]}]]},"since":"19.0","source":{"path":"org/graalvm/polyglot/tck/TypeDescriptor.java","line":317}},{"id":"org.graalvm.polyglot.tck.TypeDescriptor#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":"TypeDescriptor","ref":"org.graalvm.polyglot.tck.TypeDescriptor"},{"kind":"punct","text":" "},{"kind":"name","text":"ANY"}],"type":[{"kind":"type","text":"TypeDescriptor","ref":"org.graalvm.polyglot.tck.TypeDescriptor"}],"doc":{"summary":[{"kind":"text","text":"Represents any type."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Represents any type. It's a union of all types."}]}]},"since":"0.30","source":{"path":"org/graalvm/polyglot/tck/TypeDescriptor.java","line":324}},{"id":"org.graalvm.polyglot.tck.TypeDescriptor#ALL","anchor":"ALL","kind":"field","name":"ALL","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":"TypeDescriptor","ref":"org.graalvm.polyglot.tck.TypeDescriptor"},{"kind":"punct","text":" "},{"kind":"name","text":"ALL"}],"type":[{"kind":"type","text":"TypeDescriptor","ref":"org.graalvm.polyglot.tck.TypeDescriptor"}],"doc":{"summary":[{"kind":"text","text":"Represents all types."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Represents all types. It's an intersection of all types."}]}]},"since":"24.2","source":{"path":"org/graalvm/polyglot/tck/TypeDescriptor.java","line":334}},{"id":"org.graalvm.polyglot.tck.TypeDescriptor#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.30","source":{"path":"org/graalvm/polyglot/tck/TypeDescriptor.java","line":357}},{"id":"org.graalvm.polyglot.tck.TypeDescriptor#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.30","source":{"path":"org/graalvm/polyglot/tck/TypeDescriptor.java","line":367}},{"id":"org.graalvm.polyglot.tck.TypeDescriptor#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.30","source":{"path":"org/graalvm/polyglot/tck/TypeDescriptor.java","line":383}},{"id":"org.graalvm.polyglot.tck.TypeDescriptor#isAssignable(org.graalvm.polyglot.tck.TypeDescriptor)","anchor":"isAssignable(org.graalvm.polyglot.tck.TypeDescriptor)","kind":"method","name":"isAssignable","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isAssignable"},{"kind":"punct","text":"("},{"kind":"type","text":"TypeDescriptor","ref":"org.graalvm.polyglot.tck.TypeDescriptor"},{"kind":"punct","text":" "},{"kind":"param","text":"fromType"},{"kind":"punct","text":")"}],"params":[{"name":"fromType","type":[{"kind":"type","text":"TypeDescriptor","ref":"org.graalvm.polyglot.tck.TypeDescriptor"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the type to assign"}]}]}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"true if the fromType is assignable to this type"}]}]},"doc":{"summary":[{"kind":"text","text":"Checks if the given type is assignable to this type."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Checks if the given type is assignable to this type. The primitive types are assignable only to itself or to an union type containing the given primitive type. The array type with a component type can be assigned to itself, to an array type without a component type and to an union type containing the given array type or an array type without a component type. The union type can be assigned to other union type containing all union elements. The intersection type can be assigned to type having any intersection type. To the target intersection type only an intersection type having all the target intersection elements can be assigned."}]}]},"since":"0.30","source":{"path":"org/graalvm/polyglot/tck/TypeDescriptor.java","line":402}},{"id":"org.graalvm.polyglot.tck.TypeDescriptor#isUnion()","anchor":"isUnion()","kind":"method","name":"isUnion","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isUnion"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"true if this type represents an union type"}]}]},"doc":{"summary":[{"kind":"text","text":"Checks if this "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.TypeDescriptor"},"code":true,"children":[{"kind":"text","text":"TypeDescriptor"}]},{"kind":"text","text":" represent an union type."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Checks if this "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.TypeDescriptor"},"code":true,"children":[{"kind":"text","text":"TypeDescriptor"}]},{"kind":"text","text":" represent an union type."}]}]},"since":"0.30","source":{"path":"org/graalvm/polyglot/tck/TypeDescriptor.java","line":412}},{"id":"org.graalvm.polyglot.tck.TypeDescriptor#isIntersection()","anchor":"isIntersection()","kind":"method","name":"isIntersection","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"name","text":"isIntersection"},{"kind":"punct","text":"()"}],"returns":{"type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"true if this type represents an intersection type"}]}]},"doc":{"summary":[{"kind":"text","text":"Checks if this "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.TypeDescriptor"},"code":true,"children":[{"kind":"text","text":"TypeDescriptor"}]},{"kind":"text","text":" represent an intersection type."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Checks if this "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.TypeDescriptor"},"code":true,"children":[{"kind":"text","text":"TypeDescriptor"}]},{"kind":"text","text":" represent an intersection type."}]}]},"since":"0.30","source":{"path":"org/graalvm/polyglot/tck/TypeDescriptor.java","line":422}},{"id":"org.graalvm.polyglot.tck.TypeDescriptor#union(org.graalvm.polyglot.tck.TypeDescriptor...)","anchor":"union(org.graalvm.polyglot.tck.TypeDescriptor...)","kind":"method","name":"union","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TypeDescriptor","ref":"org.graalvm.polyglot.tck.TypeDescriptor"},{"kind":"punct","text":" "},{"kind":"name","text":"union"},{"kind":"punct","text":"("},{"kind":"type","text":"TypeDescriptor","ref":"org.graalvm.polyglot.tck.TypeDescriptor"},{"kind":"punct","text":"... "},{"kind":"param","text":"types"},{"kind":"punct","text":")"}],"params":[{"name":"types","type":[{"kind":"type","text":"TypeDescriptor","ref":"org.graalvm.polyglot.tck.TypeDescriptor"},{"kind":"punct","text":"..."}],"varargs":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the types to include in the union"}]}]}],"returns":{"type":[{"kind":"type","text":"TypeDescriptor","ref":"org.graalvm.polyglot.tck.TypeDescriptor"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the union type containing the given types"}]}]},"doc":{"summary":[{"kind":"text","text":"Creates a new union type."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a new union type. The union type is any of the given types."}]}]},"since":"0.30","source":{"path":"org/graalvm/polyglot/tck/TypeDescriptor.java","line":433}},{"id":"org.graalvm.polyglot.tck.TypeDescriptor#intersection(org.graalvm.polyglot.tck.TypeDescriptor...)","anchor":"intersection(org.graalvm.polyglot.tck.TypeDescriptor...)","kind":"method","name":"intersection","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TypeDescriptor","ref":"org.graalvm.polyglot.tck.TypeDescriptor"},{"kind":"punct","text":" "},{"kind":"name","text":"intersection"},{"kind":"punct","text":"("},{"kind":"type","text":"TypeDescriptor","ref":"org.graalvm.polyglot.tck.TypeDescriptor"},{"kind":"punct","text":"... "},{"kind":"param","text":"types"},{"kind":"punct","text":")"}],"params":[{"name":"types","type":[{"kind":"type","text":"TypeDescriptor","ref":"org.graalvm.polyglot.tck.TypeDescriptor"},{"kind":"punct","text":"..."}],"varargs":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the types to include in the intersection"}]}]}],"returns":{"type":[{"kind":"type","text":"TypeDescriptor","ref":"org.graalvm.polyglot.tck.TypeDescriptor"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the intersection type containing the given types"}]}]},"doc":{"summary":[{"kind":"text","text":"Creates a new intersection type."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a new intersection type. The intersection type is all of the given types. The intersection can be also used to create a no type. The no type is a type which has no other specialized type. The no type can be assigned to "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.TypeDescriptor#ANY"},"code":true,"children":[{"kind":"text","text":"TypeDescriptor.ANY"}]},{"kind":"text","text":" and itself. The no type is created as an empty intersection, "},{"kind":"code","text":"TypeDescriptor.intersection()"},{"kind":"text","text":"."}]}]},"since":"0.30","source":{"path":"org/graalvm/polyglot/tck/TypeDescriptor.java","line":527}},{"id":"org.graalvm.polyglot.tck.TypeDescriptor#subtract(org.graalvm.polyglot.tck.TypeDescriptor)","anchor":"subtract(org.graalvm.polyglot.tck.TypeDescriptor)","kind":"method","name":"subtract","modifiers":["public"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"type","text":"TypeDescriptor","ref":"org.graalvm.polyglot.tck.TypeDescriptor"},{"kind":"punct","text":" "},{"kind":"name","text":"subtract"},{"kind":"punct","text":"("},{"kind":"type","text":"TypeDescriptor","ref":"org.graalvm.polyglot.tck.TypeDescriptor"},{"kind":"punct","text":" "},{"kind":"param","text":"toRemove"},{"kind":"punct","text":")"}],"params":[{"name":"toRemove","type":[{"kind":"type","text":"TypeDescriptor","ref":"org.graalvm.polyglot.tck.TypeDescriptor"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the type to remove."}]}]}],"returns":{"type":[{"kind":"type","text":"TypeDescriptor","ref":"org.graalvm.polyglot.tck.TypeDescriptor"}]},"doc":{"summary":[{"kind":"text","text":"Creates a new type by removing the given type from this type."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a new type by removing the given type from this type. The type subtraction works in the following way:"}]},{"kind":"list","items":[[{"kind":"paragraph","children":[{"kind":"text","text":"If this type and the "},{"kind":"code","text":"toRemove"},{"kind":"text","text":" type represent the same types then no type is returned."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"If this type represents a "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.TypeDescriptor#isUnion()"},"code":true,"children":[{"kind":"text","text":"union"}]},{"kind":"text","text":" type the "},{"kind":"code","text":"toRemove"},{"kind":"text","text":" type is removed from the union type. When the "},{"kind":"code","text":"toRemove"},{"kind":"text","text":" type is also a union type then all types in the "},{"kind":"code","text":"toRemove"},{"kind":"text","text":" union type are removed."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"If this type represents an "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.TypeDescriptor#isIntersection()"},"code":true,"children":[{"kind":"text","text":"intersection"}]},{"kind":"text","text":" type the "},{"kind":"code","text":"toRemove"},{"kind":"text","text":" type is removed from the intersection type. When the "},{"kind":"code","text":"toRemove"},{"kind":"text","text":" type is also an intersection type then all types in the "},{"kind":"code","text":"toRemove"},{"kind":"text","text":" intersection type are removed."}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"If this and "},{"kind":"code","text":"toRemove"},{"kind":"text","text":" types are parameterized types (array, iterable, iterator, hash) of the same kind the type parameter types are subtracted applying the same rules."}]}]]},{"kind":"paragraph","children":[{"kind":"text","text":"Examples:"}]},{"kind":"list","items":[[{"kind":"paragraph","children":[{"kind":"text","text":"NUMBER.subtract(NUMBER) -> no type"}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"NUMBER.subtract(STRING) -> NUMBER"}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"UNION[NUMBER|STRING|OBJECT].subtract(NUMBER) -> UNION[STRING|OBJECT]"}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"UNION[NUMBER|STRING|OBJECT].subtract(UNION[NUMBER|STRING]) -> OBJECT"}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"INTERSECTION[NUMBER&STRING&OBJECT].subtract(NUMBER) -> INTERSECTION[STRING&OBJECT]"}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"INTERSECTION[NUMBER&STRING&OBJECT].subtract(INTERSECTION[NUMBER&STRING]) -> OBJECT"}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"ARRAY[UNION[NUMBER|STRING]].subtract(ARRAY[NUMBER]) -> ARRAY[STRING]"}]}],[{"kind":"paragraph","children":[{"kind":"text","text":"ARRAY[INTERSECTION[NUMBER|STRING]].subtract(ARRAY[NUMBER]) -> ARRAY[STRING]"}]}]]}]},"since":"20.2","source":{"path":"org/graalvm/polyglot/tck/TypeDescriptor.java","line":710}},{"id":"org.graalvm.polyglot.tck.TypeDescriptor#array(org.graalvm.polyglot.tck.TypeDescriptor)","anchor":"array(org.graalvm.polyglot.tck.TypeDescriptor)","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":"TypeDescriptor","ref":"org.graalvm.polyglot.tck.TypeDescriptor"},{"kind":"punct","text":" "},{"kind":"name","text":"array"},{"kind":"punct","text":"("},{"kind":"type","text":"TypeDescriptor","ref":"org.graalvm.polyglot.tck.TypeDescriptor"},{"kind":"punct","text":" "},{"kind":"param","text":"componentType"},{"kind":"punct","text":")"}],"params":[{"name":"componentType","type":[{"kind":"type","text":"TypeDescriptor","ref":"org.graalvm.polyglot.tck.TypeDescriptor"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the required component type."}]}]}],"returns":{"type":[{"kind":"type","text":"TypeDescriptor","ref":"org.graalvm.polyglot.tck.TypeDescriptor"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"an array type with given component"}]}]},"doc":{"summary":[{"kind":"text","text":"Creates a new array type with given component type."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a new array type with given component type. To create a multi-dimensional array use an array type as a component type."}]}]},"since":"0.30","source":{"path":"org/graalvm/polyglot/tck/TypeDescriptor.java","line":787}},{"id":"org.graalvm.polyglot.tck.TypeDescriptor#iterable(org.graalvm.polyglot.tck.TypeDescriptor)","anchor":"iterable(org.graalvm.polyglot.tck.TypeDescriptor)","kind":"method","name":"iterable","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TypeDescriptor","ref":"org.graalvm.polyglot.tck.TypeDescriptor"},{"kind":"punct","text":" "},{"kind":"name","text":"iterable"},{"kind":"punct","text":"("},{"kind":"type","text":"TypeDescriptor","ref":"org.graalvm.polyglot.tck.TypeDescriptor"},{"kind":"punct","text":" "},{"kind":"param","text":"componentType"},{"kind":"punct","text":")"}],"params":[{"name":"componentType","type":[{"kind":"type","text":"TypeDescriptor","ref":"org.graalvm.polyglot.tck.TypeDescriptor"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the required component type."}]}]}],"returns":{"type":[{"kind":"type","text":"TypeDescriptor","ref":"org.graalvm.polyglot.tck.TypeDescriptor"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"an iterable type with given component"}]}]},"doc":{"summary":[{"kind":"text","text":"Creates a new iterable type with given component type."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a new iterable type with given component type."}]}]},"since":"21.1","source":{"path":"org/graalvm/polyglot/tck/TypeDescriptor.java","line":805}},{"id":"org.graalvm.polyglot.tck.TypeDescriptor#iterator(org.graalvm.polyglot.tck.TypeDescriptor)","anchor":"iterator(org.graalvm.polyglot.tck.TypeDescriptor)","kind":"method","name":"iterator","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TypeDescriptor","ref":"org.graalvm.polyglot.tck.TypeDescriptor"},{"kind":"punct","text":" "},{"kind":"name","text":"iterator"},{"kind":"punct","text":"("},{"kind":"type","text":"TypeDescriptor","ref":"org.graalvm.polyglot.tck.TypeDescriptor"},{"kind":"punct","text":" "},{"kind":"param","text":"componentType"},{"kind":"punct","text":")"}],"params":[{"name":"componentType","type":[{"kind":"type","text":"TypeDescriptor","ref":"org.graalvm.polyglot.tck.TypeDescriptor"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the required component type."}]}]}],"returns":{"type":[{"kind":"type","text":"TypeDescriptor","ref":"org.graalvm.polyglot.tck.TypeDescriptor"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"an iterator type with given component"}]}]},"doc":{"summary":[{"kind":"text","text":"Creates a new iterator type with given component type."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a new iterator type with given component type."}]}]},"since":"21.1","source":{"path":"org/graalvm/polyglot/tck/TypeDescriptor.java","line":821}},{"id":"org.graalvm.polyglot.tck.TypeDescriptor#hash(org.graalvm.polyglot.tck.TypeDescriptor,org.graalvm.polyglot.tck.TypeDescriptor)","anchor":"hash(org.graalvm.polyglot.tck.TypeDescriptor,org.graalvm.polyglot.tck.TypeDescriptor)","kind":"method","name":"hash","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TypeDescriptor","ref":"org.graalvm.polyglot.tck.TypeDescriptor"},{"kind":"punct","text":" "},{"kind":"name","text":"hash"},{"kind":"punct","text":"("},{"kind":"type","text":"TypeDescriptor","ref":"org.graalvm.polyglot.tck.TypeDescriptor"},{"kind":"punct","text":" "},{"kind":"param","text":"keyType"},{"kind":"punct","text":", "},{"kind":"type","text":"TypeDescriptor","ref":"org.graalvm.polyglot.tck.TypeDescriptor"},{"kind":"punct","text":" "},{"kind":"param","text":"valueType"},{"kind":"punct","text":")"}],"params":[{"name":"keyType","type":[{"kind":"type","text":"TypeDescriptor","ref":"org.graalvm.polyglot.tck.TypeDescriptor"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the required key type."}]}]},{"name":"valueType","type":[{"kind":"type","text":"TypeDescriptor","ref":"org.graalvm.polyglot.tck.TypeDescriptor"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the required value type."}]}]}],"returns":{"type":[{"kind":"type","text":"TypeDescriptor","ref":"org.graalvm.polyglot.tck.TypeDescriptor"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"a new hash map type with given key and value types"}]}]},"doc":{"summary":[{"kind":"text","text":"Creates a new hash map type with given key type and value type."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a new hash map type with given key type and value type."}]}]},"since":"21.1","source":{"path":"org/graalvm/polyglot/tck/TypeDescriptor.java","line":838}},{"id":"org.graalvm.polyglot.tck.TypeDescriptor#executable(org.graalvm.polyglot.tck.TypeDescriptor,org.graalvm.polyglot.tck.TypeDescriptor...)","anchor":"executable(org.graalvm.polyglot.tck.TypeDescriptor,org.graalvm.polyglot.tck.TypeDescriptor...)","kind":"method","name":"executable","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TypeDescriptor","ref":"org.graalvm.polyglot.tck.TypeDescriptor"},{"kind":"punct","text":" "},{"kind":"name","text":"executable"},{"kind":"punct","text":"("},{"kind":"type","text":"TypeDescriptor","ref":"org.graalvm.polyglot.tck.TypeDescriptor"},{"kind":"punct","text":" "},{"kind":"param","text":"returnType"},{"kind":"punct","text":", "},{"kind":"type","text":"TypeDescriptor","ref":"org.graalvm.polyglot.tck.TypeDescriptor"},{"kind":"punct","text":"... "},{"kind":"param","text":"parameterTypes"},{"kind":"punct","text":")"}],"params":[{"name":"returnType","type":[{"kind":"type","text":"TypeDescriptor","ref":"org.graalvm.polyglot.tck.TypeDescriptor"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the required return type, use ANY as any type"}]}]},{"name":"parameterTypes","type":[{"kind":"type","text":"TypeDescriptor","ref":"org.graalvm.polyglot.tck.TypeDescriptor"},{"kind":"punct","text":"..."}],"varargs":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the required parameter types"}]}]}],"returns":{"type":[{"kind":"type","text":"TypeDescriptor","ref":"org.graalvm.polyglot.tck.TypeDescriptor"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"an executable type"}]}]},"doc":{"summary":[{"kind":"text","text":"Creates a new executable type with a given return type and parameter types."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a new executable type with a given return type and parameter types."}]}]},"since":"0.30","source":{"path":"org/graalvm/polyglot/tck/TypeDescriptor.java","line":856}},{"id":"org.graalvm.polyglot.tck.TypeDescriptor#executable(org.graalvm.polyglot.tck.TypeDescriptor,boolean,org.graalvm.polyglot.tck.TypeDescriptor...)","anchor":"executable(org.graalvm.polyglot.tck.TypeDescriptor,boolean,org.graalvm.polyglot.tck.TypeDescriptor...)","kind":"method","name":"executable","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TypeDescriptor","ref":"org.graalvm.polyglot.tck.TypeDescriptor"},{"kind":"punct","text":" "},{"kind":"name","text":"executable"},{"kind":"punct","text":"("},{"kind":"type","text":"TypeDescriptor","ref":"org.graalvm.polyglot.tck.TypeDescriptor"},{"kind":"punct","text":" "},{"kind":"param","text":"returnType"},{"kind":"punct","text":", "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"vararg"},{"kind":"punct","text":", "},{"kind":"type","text":"TypeDescriptor","ref":"org.graalvm.polyglot.tck.TypeDescriptor"},{"kind":"punct","text":"... "},{"kind":"param","text":"parameterTypes"},{"kind":"punct","text":")"}],"params":[{"name":"returnType","type":[{"kind":"type","text":"TypeDescriptor","ref":"org.graalvm.polyglot.tck.TypeDescriptor"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the required return type, use ANY as any type"}]}]},{"name":"vararg","type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the executable has variable length arguments or ignores additional parameters. For executables created by the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.LanguageProvider#createValueConstructors(org.graalvm.polyglot.Context)"},"code":true,"children":[{"kind":"text","text":"LanguageProvider.createValueConstructors(org.graalvm.polyglot.Context)"}]},{"kind":"text","text":" set to "},{"kind":"code","text":"false"},{"kind":"text","text":" if the language neither ignores extra parameters nor the executable has variable arguments length."}]}]},{"name":"parameterTypes","type":[{"kind":"type","text":"TypeDescriptor","ref":"org.graalvm.polyglot.tck.TypeDescriptor"},{"kind":"punct","text":"..."}],"varargs":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the required parameter types"}]}]}],"returns":{"type":[{"kind":"type","text":"TypeDescriptor","ref":"org.graalvm.polyglot.tck.TypeDescriptor"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"an executable type"}]}]},"doc":{"summary":[{"kind":"text","text":"Creates a new executable type with a given return type and parameter types."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a new executable type with a given return type and parameter types."}]}]},"since":"0.31","source":{"path":"org/graalvm/polyglot/tck/TypeDescriptor.java","line":873}},{"id":"org.graalvm.polyglot.tck.TypeDescriptor#instantiable(org.graalvm.polyglot.tck.TypeDescriptor,boolean,org.graalvm.polyglot.tck.TypeDescriptor...)","anchor":"instantiable(org.graalvm.polyglot.tck.TypeDescriptor,boolean,org.graalvm.polyglot.tck.TypeDescriptor...)","kind":"method","name":"instantiable","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TypeDescriptor","ref":"org.graalvm.polyglot.tck.TypeDescriptor"},{"kind":"punct","text":" "},{"kind":"name","text":"instantiable"},{"kind":"punct","text":"("},{"kind":"type","text":"TypeDescriptor","ref":"org.graalvm.polyglot.tck.TypeDescriptor"},{"kind":"punct","text":" "},{"kind":"param","text":"instanceType"},{"kind":"punct","text":", "},{"kind":"keyword","text":"boolean"},{"kind":"punct","text":" "},{"kind":"param","text":"vararg"},{"kind":"punct","text":", "},{"kind":"type","text":"TypeDescriptor","ref":"org.graalvm.polyglot.tck.TypeDescriptor"},{"kind":"punct","text":"... "},{"kind":"param","text":"parameterTypes"},{"kind":"punct","text":")"}],"params":[{"name":"instanceType","type":[{"kind":"type","text":"TypeDescriptor","ref":"org.graalvm.polyglot.tck.TypeDescriptor"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the type of an instance, use ANY as any type"}]}]},{"name":"vararg","type":[{"kind":"keyword","text":"boolean"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the instantiable has variable length arguments or ignores additional parameters. For instantiables created by the "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.LanguageProvider#createValueConstructors(org.graalvm.polyglot.Context)"},"code":true,"children":[{"kind":"text","text":"LanguageProvider.createValueConstructors(org.graalvm.polyglot.Context)"}]},{"kind":"text","text":" set to "},{"kind":"code","text":"false"},{"kind":"text","text":" if the language neither ignores extra parameters nor the instantiable has variable arguments length."}]}]},{"name":"parameterTypes","type":[{"kind":"type","text":"TypeDescriptor","ref":"org.graalvm.polyglot.tck.TypeDescriptor"},{"kind":"punct","text":"..."}],"varargs":true,"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the required parameter types"}]}]}],"returns":{"type":[{"kind":"type","text":"TypeDescriptor","ref":"org.graalvm.polyglot.tck.TypeDescriptor"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"an instantiable type"}]}]},"doc":{"summary":[{"kind":"text","text":"Creates a new instantiable type with a given parameter types."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a new instantiable type with a given parameter types."}]}]},"since":"19.0","source":{"path":"org/graalvm/polyglot/tck/TypeDescriptor.java","line":900}},{"id":"org.graalvm.polyglot.tck.TypeDescriptor#forValue(org.graalvm.polyglot.Value)","anchor":"forValue(org.graalvm.polyglot.Value)","kind":"method","name":"forValue","modifiers":["public","static"],"signature":[{"kind":"keyword","text":"public"},{"kind":"punct","text":" "},{"kind":"keyword","text":"static"},{"kind":"punct","text":" "},{"kind":"type","text":"TypeDescriptor","ref":"org.graalvm.polyglot.tck.TypeDescriptor"},{"kind":"punct","text":" "},{"kind":"name","text":"forValue"},{"kind":"punct","text":"("},{"kind":"type","text":"Value","ref":"org.graalvm.polyglot.Value","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Value.html"},{"kind":"punct","text":" "},{"kind":"param","text":"value"},{"kind":"punct","text":")"}],"params":[{"name":"value","type":[{"kind":"type","text":"Value","ref":"org.graalvm.polyglot.Value","url":"https://graalvm.elide.help/25.6.0-elide.4/api/polyglot/org/graalvm/polyglot/Value.html"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the value to create "},{"kind":"link","target":{"id":"org.graalvm.polyglot.tck.TypeDescriptor"},"code":true,"children":[{"kind":"text","text":"TypeDescriptor"}]},{"kind":"text","text":" for"}]}]}],"returns":{"type":[{"kind":"type","text":"TypeDescriptor","ref":"org.graalvm.polyglot.tck.TypeDescriptor"}],"doc":[{"kind":"paragraph","children":[{"kind":"text","text":"the type of value, may by an union type containing more primitive or array types."}]}]},"doc":{"summary":[{"kind":"text","text":"Creates a type for given "},{"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":"."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Creates a type for given "},{"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":"."}]}]},"since":"0.30","source":{"path":"org/graalvm/polyglot/tck/TypeDescriptor.java","line":921}}],"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#getClass()","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 polyglot value."}],"body":[{"kind":"paragraph","children":[{"kind":"text","text":"Represents a type of a polyglot value. Types include primitive types, null type, object type, array type with an optional content type and union type."}]}]},"since":"0.30","source":{"path":"org/graalvm/polyglot/tck/TypeDescriptor.java","line":66}}]}]}