TextTree (Compiler Tree API )
Keywords: com.sun.source.doctree.TextTree interface
Date: 2026-06-25

com.sun.source.doctree

## Interface TextTree

- All Superinterfaces:
    DocTree
  All Known Subinterfaces:
    ErroneousTree

      @Exported
      public interface TextTree
      extends DocTree

  A tree node for plain text.
  Since:
    1.8

- - ### Nested Class Summary

    - ### Nested classes/interfaces inherited from interface com.sun.source.doctree.DocTree

      `DocTree.Kind`

  - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `getBody()`

    - ### Methods inherited from interface com.sun.source.doctree.DocTree

      `accept, getKind`

- - ### Method Detail

    - #### getBody

          String getBody()

Copyright © 2005, 2026, Oracle and/or its affiliates. All rights reserved.