- すべてのスーパー・インタフェース:
DocTree
,InlineTagTree
public interface SnippetTree extends InlineTagTree
@snippet
のインライン・タグのツリー・ノード。
{@snippet : body } {@snippet attributes} {@snippet attributes : body }
- 導入されたバージョン:
- 18
-
ネストされたクラスのサマリー
インタフェースcom.sun.source.doctree.DocTreeで宣言されたネストされたクラス/インタフェース
DocTree.Kind
-
メソッドのサマリー
インタフェースcom.sun.source.doctree.InlineTagTreeで宣言されたメソッド
getTagName
-
メソッドの詳細
-
getAttributes
-
getBody
TextTree getBody()@snippet
タグの本体を返します。本文がない場合はnull
を返します。- APIのノート:
- 本文が空である
SnippetTree
のインスタンスは、本文のないSnippetTree
のインスタンスとは異なります。 タグに本文がない場合、このメソッドをコールするとnull
が返されます。 タグに空の本文がある場合、このメソッドは、TextTree.getBody()
が空の文字列を返すTextTree
を返します。 - 戻り値:
- タグの本文、または本文がない場合は
null
-