annotation / target
Declare an annotation and restrict its allowed targets.
Mark.kalm
pub annotation Mark:
target type, parameter
value: Text = "noted"
Mark.kalm
pub annotation Mark {
target type, parameter
value: Text = "noted"
}
Mark.kalms
annotation Mark:
target type, parameter
value: Text = "noted"
Mark.kalms
annotation Mark {
target type, parameter
value: Text = "noted"
}
Mark.java
import java.lang.annotation.ElementType;
import java.lang.annotation.Target;
@Target({ ElementType.TYPE, ElementType.PARAMETER })
public @interface Mark {
String value() default "noted";
}