Module jdk.compiler

Interface LiteralTree

所有超级接口:
DocTree, InlineTagTree

public interface LiteralTree extends InlineTagTree
用于@literal@code内联标签的树节点。
    {@literal text}
    {@code text}
 
自Java版本:
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
    返回@literal@code标签的主体。

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

    accept, getKind

    Methods declared in interface com.sun.source.doctree.InlineTagTree

    getTagName
  • Method Details

    • getBody

      TextTree getBody()
      返回@literal@code标签的主体。
      返回:
      标签的主体