In this enum, you need to have an entry for every function you add to your interface.
在此枚举,你需要有一个为每个功能添加到您的界面进入。
This enum defines the various program elements that an annotation type can target. Listing 9 show the ElementType enum in its entirety.
这个枚举定义了注释类型可应用的不同程序元素。
Tiger has conveniently added enum support to the good old switch statement, so it's easy-to-use and fits right in with what you already know. Listing 6 shows you how to pull this off
Tiger 能够很方便地把枚举支持添加到过去的好东西 switch 语句上,所以它很容易使用,而且适合您已知的内容。
应用推荐