-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathButProps.java
36 lines (32 loc) · 998 Bytes
/
ButProps.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// FUB-Annotat/ButProps.java
// taha burak sahin pjatk
import java.lang.annotation.ElementType;
import java.lang.annotation.Target;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
/*
Annotation targets
enumeration constants of enum ElementType
ANNOTATION_TYPE - annotates other annotation
PACKAGE
TYPE - classes and itrefaces
METHOD
CONSTRUCTOR
FIELD
PARAMETER
LOCAL_VARIABLE - local variables
Annotation policies:
enumeration constants of enum RetentionPolicy
RetentionPolicy.SOURCE
RetentionPolicy.CLASS
RetentionPolicy.RUNTIME
*/
@Target(ElementType.FIELD) // annotates fields
@Retention(RetentionPolicy.RUNTIME) // seen at run time
public @interface ButProps {
int panel();
int red() default 255;
int green() default 255;
int blue() default 0;
String message();
}