TextTree (Java SE 22 & JDK 22)
Description: declaration: module: jdk.compiler, package: com.sun.source.doctree, interface: TextTree
Keywords: com.sun.source.doctree.TextTree interface

Module jdk.compiler
Package com.sun.source.doctree

# Interface TextTree

All Superinterfaces:
  `DocTree`

All Known Subinterfaces:
  `ErroneousTree`, `EscapeTree`

public interface TextTree extends DocTree
A tree node for plain text.

Since:
  1.8

- ## Nested Class Summary

  ### Nested classes/interfaces declared in interface com.sun.source.doctree.DocTree

  `DocTree.Kind`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `String`
  `getBody()`
  Returns the text.

  ### Methods declared in interface com.sun.source.doctree.DocTree

  `accept, getKind`

- ## Method Details

  - ### getBody

    String getBody()
    Returns the text.
    Returns:
      the text