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

# Interface SpecTree

All Superinterfaces:
  `BlockTagTree`, `DocTree`

public interface SpecTree extends BlockTagTree
A tree node for an `@spec` block tag.

        @spec url title

Since:
  20

- ## Nested Class Summary

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

  `DocTree.Kind`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `List<? extends DocTree>`
  `getTitle()`
  Returns the title.
  `TextTree`
  `getURL()`
  Returns the URL.

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

  `getTagName`

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

  `accept, getKind`

- ## Method Details

  - ### getURL

    TextTree getURL()
    Returns the URL.
    Returns:
      the URL

  - ### getTitle

    List<? extends DocTree> getTitle()
    Returns the title.
    Returns:
      the title