Translate

2016年10月18日 星期二

105-1 元智資工 - Introduction to Java - Annotations




Annotations
Annotations, a form of metadata, provide data about a program that is not part of the program itself. Annotations have no direct effect on the operation of the code they annotate.
Annotations have a number of uses, among them:
  • Information for the compiler — Annotations can be used by the compiler to detect errors or suppress warnings.
  • Compile-time and deployment-time processing — Software tools can process annotation information to generate code, XML files, and so forth.
  • Runtime processing — Some annotations are available to be examined at runtime.
This lesson explains where annotations can be used, how to apply annotations, what predefined annotation types are available in the Java Platform, Standard Edition (Java SE API), how type annnotations can be used in conjunction with pluggable type systems to write code with stronger type checking, and how to implement repeating annotations.

Link : https://docs.oracle.com/javase/tutorial/java/annotations/basics.html
Wiki : https://en.wikipedia.org/wiki/Java_annotation



Reference:

  • https://goo.gl/3Qp3k9
  • http://www.itzhai.com/java-based-notebook-annotation-annotation-introduction-and-use-custom-annotations.html#read-more
  • http://www.jianshu.com/p/71e1906af9fa

沒有留言: