# polyglot-tck 25.6.0-elide.4 > API reference for polyglot-tck. Each page below is Markdown; the HTML page of the same name has the same content. llms-full.txt has every page in one file, and api.json is the apidocs/1 model. ## When to use this Use this API reference when you write, read or review code that uses polyglot-tck 25.6.0-elide.4. ## Overview - [⬢ polyglot-tck](index.md): packages and types - [Alphabetical index](index-all.md): find `Type.member` or search by behavior. Check the declaring type and overload, then follow the matching link. - [Declaration contracts](contracts.ndjson): full structured records for a known `Type.member`, including documented parameters, returns and throws. - [llms-full.txt](llms-full.txt): every page in one file - [api.json](api.json): the apidocs/1 model ## Pages - [▣ Package org.graalvm.polyglot.tck](org/graalvm/polyglot/tck/index.md): Provide an implementation of the org.graalvm.polyglot.tck.LanguageProvider to test language inter-operability. - [◆ InlineSnippet (class in org.graalvm.polyglot.tck)](org/graalvm/polyglot/tck/InlineSnippet.md): The unit of execution with an inline source. getScript(): Returns a script to be executed. getCode(): Returns an inline source code that is to be executed at specific locations, or at all statement and call locations if the predicate is null. getLocationPredicate(): Returns a testing predicate for locations at which source code is executed. Returns: the predicate that returns true for SourceSections where the source code is to be executed, or null if the sour getResultVerifier(): Returns the ResultVerifier to verify the result of source code execution. Returns: either a custom or the default ResultVerifier. newBuilder(Snippet, CharSequen - [◆ InlineSnippet.Builder (class in org.graalvm.polyglot.tck)](org/graalvm/polyglot/tck/InlineSnippet.Builder.md): The builder of an InlineSnippet. locationPredicate(Predicate): Sets a testing predicate for locations at which the source is executed. Returns: the predicate that returns true for SourceSections where source is to be executed resultVerifier(ResultVerifier): Sets a custom verifier of a result of the inline source execution. Returns: this Builder build(): Creates a new InlineSnippet configured by this Builder. Returns: the InlineSnippet - [◇ LanguageProvider (interface in org.graalvm.polyglot.tck)](org/graalvm/polyglot/tck/LanguageProvider.md): The LanguageProvider provides factory methods for language data types, expressions, statements and scripts used for testing language inter-operability. getId(): Returns an identification of a provider. Returns: the language identification additionalOptions(): Allows language providers to provide language options during the creation of the test context. Returns: The (key, value) pairs of language option to add to the context. createIdentityFunction(Context): Creates an identity function. Returns: the Value representing the identity function createIdentityFunctionSnippet(Context): Creates a Snippet for an identity function. Returns: the Snippet representing the identity function createValueConstructors(Context): Creates a collection of function - [◇ ResultVerifier (interface in org.graalvm.polyglot.tck)](org/graalvm/polyglot/tck/ResultVerifier.md): Allows a custom verification of a result of a snippet execution. accept(ResultVerifier.SnippetRun): Performs a verification of a result of a snippet execution. Throws: PolyglotException - may propagate the PolyglotException from the snippetRun Throws: AssertionError - may throw an Ass getDefaultResultVerifier(): Creates a default ResultVerifier. Returns: the default ResultVerifier getIdentityFunctionDefaultResultVerifier(): Creates a default ResultVerifier for the IdentityFunctionTest. Returns: the default ResultVerifier for IdentityFunctionTest. - [◆ ResultVerifier.SnippetRun (class in org.graalvm.polyglot.tck)](org/graalvm/polyglot/tck/ResultVerifier.SnippetRun.md): Provides the test execution data. getParameters(): Returns the actual parameters of a snippet execution. Returns: the parameters getResult(): Returns the result of a snippet execution. Returns: the result of a snippet execution or null in case of execution failure. getException(): Returns the PolyglotException thrown during snippet execution. Returns: the PolyglotException thrown during the execution or null in case of successful execution. create(Snippet, List, Value): Creates a new SnippetRun for successful execution. Returns: the SnippetRun create(Snippet, List, PolyglotException): Creates a new SnippetRun for failed execut - [◆ Snippet (class in org.graalvm.polyglot.tck)](org/graalvm/polyglot/tck/Snippet.md): The unit of execution with assigned parameters and result types. getId(): Returns the identifier of a snippet. Returns: the Snippet identifier getExecutableValue(): Returns the function executing the Snippet. Returns: the executable Value getReturnType(): Returns the Snippet return type. Returns: the return type getParameterTypes(): Returns the types of Snippet formal parameters. Returns: the parameter types getResultVerifier(): Returns the ResultVerifier to verify the execution result. Returns: either a custom or the default ResultVerifier. newBuilder(String, Value, TypeDescriptor): Creates a new Snippet builder object. Returns: the new Builder - [◆ Snippet.Builder (class in org.graalvm.polyglot.tck)](org/graalvm/polyglot/tck/Snippet.Builder.md): The builder of a Snippet. parameterTypes(TypeDescriptor...): Sets the Snippet formal parameter types. Returns: this Builder resultVerifier(ResultVerifier): Sets a custom verifier of a result of the Snippet execution. Returns: this Builder build(): Creates a new Snippet configured by this Builder. Returns: the Snippet - [◆ TypeDescriptor (class in org.graalvm.polyglot.tck)](org/graalvm/polyglot/tck/TypeDescriptor.md): Represents a type of a polyglot value. NULL: The NULL type represents a type of null or undefined value. BOOLEAN: Represents a boolean type. NUMBER: Represents a numeric type. STRING: Represents a string type. ITERABLE: Represents an iterable with any content type. ITERATOR: Represents an iterator with any content type. HASH: Represents a hash map with any key type and any value type. OBJECT: Represents an object created by a guest language. ## Indexes - [Packages](packages.md): every package with its summary and type counts - [All types](types.md): every type, nested ones too, by name - [Index](index-all.md): every declaration from A to Z