APIdia Launch Partner
Top Description Fields Constructors Methods
jdk.javadoc.internal.html

public Class Comment

extends Content
Class Inheritance
Imports
java.io.IOException, .Writer, java.util.Objects

Class for generating a comment for HTML pages of javadoc output.

Field Summary

Modifier and TypeField and Description
private final String

Constructor Summary

AccessConstructor and Description
public
Comment(String
comment text for the comment
comment
)

Constructor to construct a Comment object.

Method Summary

Modifier and TypeMethod and Description
public boolean
isEmpty()

Implements abstract jdk.javadoc.internal.html.Content.isEmpty.

Returns true if the content is empty.

public boolean
write(Writer out, String newline, boolean atNewline)

Implements abstract jdk.javadoc.internal.html.Content.write.

Writes content to a writer, using a given newline sequence, which should be either \n or the platform line separator.

Inherited from jdk.javadoc.internal.html.Content:
addaddaddAllcharCountisDiscardableisPhrasingContentstripTagstoString

Field Detail

commentTextback to summary
private final String commentText

Constructor Detail

Commentback to summary
public Comment(String comment)

Constructor to construct a Comment object.

Parameters
comment:String

comment text for the comment

Method Detail

isEmptyback to summary
public boolean isEmpty()

Implements abstract jdk.javadoc.internal.html.Content.isEmpty.

Doc from jdk.javadoc.internal.html.Content.isEmpty.

Returns true if the content is empty.

Annotations
@Override
writeback to summary
public boolean write(Writer out, String newline, boolean atNewline) throws IOException

Implements abstract jdk.javadoc.internal.html.Content.write.

Doc from jdk.javadoc.internal.html.Content.write.

Writes content to a writer, using a given newline sequence, which should be either \n or the platform line separator.

Annotations
@Override
Exceptions
IOException:
if an error occurs while writing the output