各位开发中常用哪些注解?

2016-10-11 10:09:15 +08:00
 andreby
4515 次点击
所在节点    Java
29 条回复
iMono
2016-10-11 18:39:16 +08:00
zhangchioulin
2016-10-12 09:54:10 +08:00
@brief
@discussion
@param
#warning
#pragma mark -
param
2016-10-12 09:56:52 +08:00
@param 是我的
@Override 也是我的
Override
2016-10-12 09:57:42 +08:00
我仿佛又听到有人在背后偷偷 @我
Override
2016-10-12 09:58:31 +08:00
@sutra 我也干过这种事,于是我注册了 Override 和 param
Override
2016-10-12 10:02:23 +08:00
我用

grep -RPoh --exclude-dir='.git' --exclude-dir='node_modules' '@\w+' 2> /dev/null | sort | uniq -c | sort -n

找到

503 @transition
507 @alert
513 @test
517 @store
534 @MIT
558 @OpenSSL
569 @RM
574 @class
576 @y
583 @xml
587 @V
589 @columns
589 @private
592 @s
594 @top_level
607 @index
609 @latin
628 @t
645 @S
670 @behdad
672 @android
683 @classmethod
692 @string
741 @parser
776 @x
781 @popover
793 @app
806 @keithp
843 @dummy
854 @openssl
858 @tooltip
882 @attr
912 @ngdoc
912 @type
945 @_
975 @btn
975 @import
981 @state
985 @description
1013 @am__nodep
1024 @padding
1030 @am__include
1065 @border
1103 @echo
1115 @to
1118 @returns
1119 @input
1128 @grid
1129 @T
1144 @start
1156 @insns
1193 @list
1225 @panel
1251 @static
1279 @end
1329 @font
1366 @drawable
1383 @fa
1432 @section
1435 @screen
1439 @author
1447 @dimen
1511 @line
1513 @Override
1538 @name
1598 @options
1645 @example
1661 @method
1708 @see
1729 @file
1740 @XMM
1860 @style
1969 @am__quote
2140 @property
2188 @navbar
2202 @AMDEPBACKSLASH
2226 @am__fastdepCC_TRUE
2488 @X
3071 @color
3141 @AMDEP_TRUE
3141 @gmail
3258 @am__fastdepCC_FALSE
4885 @return
5020 @media
5510 @link
6484 @cryptsoft
17094 @param
param
2016-10-12 10:32:25 +08:00
@CFO
sutra
2016-10-12 10:33:52 +08:00
@Override 你这个是 GNU Grep (也就是常用在 Linux 上) 吧? BSD Grep (也就是常用在 Mac 上的)没有 -P 。
sunwei0325
2016-10-20 15:19:02 +08:00
最多的就是 @Test

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/311804

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX