APIdia Launch Partner
Top Description Methods
com.sun.source.doctree

public Interface LiteralTree

extends InlineTagTree
Known Direct Implementers
com.sun.tools.javac.tree.DCTree.DCLiteral

A tree node for an @literal or @code inline tag.
   {@literal text}
   {@code text}
Since
1.8

Method Summary

Modifier and TypeMethod and Description
public TextTree

Returns:

the body of the tag
getBody
()

Returns the body of the @literal or @code tag.

Inherited from com.sun.source.doctree.InlineTagTree:
getTagName

Method Detail

getBodyback to summary
public TextTree getBody()

Returns the body of the @literal or @code tag.

Returns:TextTree

the body of the tag