mirror of
https://github.com/tiennm99/lombok.git
synced 2026-09-16 06:19:49 +00:00
42 lines
864 B
Java
42 lines
864 B
Java
import java.lang.annotation.ElementType;
|
|
import java.lang.annotation.Retention;
|
|
import java.lang.annotation.RetentionPolicy;
|
|
import java.lang.annotation.Target;
|
|
|
|
class ThisParameter {
|
|
|
|
void untagged(ThisParameter this, int i) {
|
|
// no content
|
|
}
|
|
|
|
void sourceTagged(@SourceTagged("source") ThisParameter this) {
|
|
// no content
|
|
}
|
|
|
|
void classTagged(@ClassTagged("class") ThisParameter this) {
|
|
// no content
|
|
}
|
|
|
|
void runtimeTagged(@RuntimeTagged("runtime") ThisParameter this) {
|
|
// no content
|
|
}
|
|
|
|
@Target(ElementType.PARAMETER)
|
|
@Retention(RetentionPolicy.SOURCE)
|
|
@interface SourceTagged {
|
|
String value();
|
|
}
|
|
|
|
@Target(ElementType.PARAMETER)
|
|
@Retention(RetentionPolicy.CLASS)
|
|
@interface ClassTagged {
|
|
String value();
|
|
}
|
|
|
|
@Target(ElementType.PARAMETER)
|
|
@Retention(RetentionPolicy.RUNTIME)
|
|
@interface RuntimeTagged {
|
|
String value();
|
|
}
|
|
}
|