package rejava3.注解;
import java.lang.annotation.*;
public class TestAnnotation {
}
class Ano{
@Override
public String toString() {
return super.toString();
}
@Deprecated
public void method1(){}
@SuppressWarnings("all")
public void method2() {
int a=0;
}
@AN( value = "value的", name="name的", schools={"大","更大"} )
public void method3(){}
}
@Target(value = { ElementType.TYPE, ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER, ElementType.CONSTRUCTOR, ElementType.LOCAL_VARIABLE, ElementType.ANNOTATION_TYPE, ElementType.PACKAGE, ElementType.TYPE_PARAMETER, ElementType.TYPE_USE})
@Retention(RetentionPolicy.SOURCE)
@Documented
@Inherited
@interface AN{
String name();
String value();
int id() default 0;
int age() default -1;
String[] schools();
String[] families() default {"家","佳"};
}