---
title: "TruffleRunner.Inject"
description: "A parameter annotated with Inject specifies the RootNode of the test AST."
kind: "annotation interface"
id: "com.oracle.truffle.tck.TruffleRunner$Inject"
module: "truffle-tck"
version: "25.6.0-elide.4"
canonical: "https://graalvm.elide.help/25.6.0-elide.4/api/truffle-tck/com/oracle/truffle/tck/TruffleRunner.Inject.html"
---

# @ TruffleRunner.Inject

[truffle-tck](../../../../index.md) › [com.oracle.truffle.tck](index.md) · Every page: [llms.txt](../../../../llms.txt)

Annotation interface in [`com.oracle.truffle.tck`](index.md). Since 0.25. Nested in [`TruffleRunner`](TruffleRunner.md).

```java
@Retention(RUNTIME)
@Target({PARAMETER})
public @interface TruffleRunner.Inject
```

A parameter annotated with [`Inject`](TruffleRunner.Inject.md) specifies the [`RootNode`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/RootNode.html) of the test AST.

**See also**

- [`TruffleRunner`](TruffleRunner.md)

## Elements

### value()
<a id="value()"></a>`Class<? extends RootNode> value()`. Since 0.25. Defines the [`root node`](https://graalvm.elide.help/25.6.0-elide.4/api/truffle-api/com/oracle/truffle/api/nodes/RootNode.html) of the Truffle tree that should be tested. Cite: `com/oracle/truffle/tck/TruffleRunner.Inject.html#value()`
