Knowledge related to Java annotations

Source: Internet
Author: User

* HTML Tag:
* <A> you can define an anchor. There are two main attributes:
* Href (most important): creates a link (or hyperlink) pointing to another document)
* Name or ID: Create a bookmarks in the document.

* <B> bold text Effect
* <I> italic text Effect
* <Em> emphasize text, which is the same as <strong>, but <strong> emphasizes more.
* <Tt> similar to typewriter or wide text

* <BLOCKQUOTE> tag definition reference
All texts between <BLOCKQUOTE> and </BLOCKQUOTE> are separated from the regular text, and are indented on both sides of the left and right (with the margin added ), in addition, italics are sometimes used. That is to say, block references have their own space.

* <Br> simply start a new row.
* <P> Start a new section. There are some Vertical spacing between adjacent sections.

* <Code> define the computer code text
* <DL> definition list
* <DT> define a project in the list
* <DD> definition section of the definition entry in the definition list
* <HR1>-* <HR> Create a horizontal line
* <Li> define a list item, combined with an ordered list <ol> and unordered list <NL> and <ul> (<ul> generates Horizontal spacing in the line header ).
* <PRE> pre-formatted text can be defined. Text enclosed in the PRE element usually contains spaces and line breaks. The text is also displayed as an equal-width font.
* <Q> define short references.
* <Tbody> table subject
* <TD> define standard cells in an HTML table

* <TH> defines the header cells in the table.
* <Tr> define rows in an HTML table

 

* Javadoc mark (class comment, variable comment, method comment)
* @ Author name. Can be used for: Class comments, variable comments, and method comments.
* @ Deprecated: The description of the related content is not recommended, causing a warning that this content is not recommended. Can be used for: Class comments, variable comments, and method comments.
* @ Exception: exception description. Can be used for: Method Annotation
* @ Param parameter description. Can be used for: Method Annotation
* @ Return refers to the return value. Can be used for: Method Annotation
* @ See the hyperlink "see XX entries" in the generated document. You can add "Class Name", "complete Class Name", and "complete class name # method ". Can be used for: Class, method, variable Annotation
* @ Since indicates the version from which the content exists. Used for: Class comments, variable comments, and method comments
* @ Throws may throw exceptions. Can be used for: Method Annotation
* @ Version information. Can be used for: Class Annotation
* The following mark can be inserted into the description to extend the description function.
* {@ Code} displays the specified text in the typewriter font
* {@ Docroot} obtains the complete directory of the document.
* {@ Inheritdoc} the copy description from the rewrite method.
* {@ Link} is similar to @ see.
* {@ Linkplain} is the same as {@ link}, but the font is different.
* {@ Value} returns the value of a static scope.

* Remarks
* Public @ interface mytag {string name (); int age ();} custom tag. The specific usage is not quite satisfactory yet.

* For more details, see: http://www.cnblogs.com/allen8807/archive/2010/11/10/1873703.html

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.