Java Annotation documentation uses

Source: Internet
Author: User

We often use the third-party jar, JDK, etc. have their own source code comment documents, the Java code developed by the best also has a good annotated document, easy to understand and maintain.

1. Document syntax

  

Grammar

Example

Description

{@link address }

{@link Java.nio.charset.CharsetDecoder}

Click to jump to the comment document for the corresponding class

{@link address # method or property alias }

{@link charsequence#length () length}

Because the annotation class is under the same package as the Charsequence, the package name can be ignored, and if the linked method is its own method, the class name can also be ignored

{@linkplain address alias }

{@linkplain Java.nio.charset.Charset

CharSet

Click CharSetto go to the corresponding class's comment document

<br>

Line break

<p>

Segmentation

{@code code }

{@code true}

Represents Java code true

Also refer to Http://baike.baidu.com/item/javadoc?fr=aladdin

2.

Java Annotation documentation uses

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.