Depth understanding of java virtual machine (17): Plug-in annotation processor combat

Actual target to achieve a java plug-naming format specification check

Class or interface with hump nomenclature, the first letter capitalized

Method, in line with hump nomenclature, the first letter lowercase

Field:

Class or instance variables: meet hump Nomenclature, the first letter lowercase

Constants: require all capital letters or the underscore, and the first character can not be an underscore

Javac compiler to add an extra feature, when compiling the program checks whether the procedures meet the above criteria.

 

Guess you like

Origin www.cnblogs.com/xiaofeiyang/p/11968014.html