@Retention(value=RUNTIME)
public static @interface StatisticsLogger.Loggable
double foo()
. Requires to specify the figure's label.
The method name and annotation label are not necessarily related. For example:
@Loggable("SomeStatistics") double getSomeStatistic() {...}
Modifier and Type | Required Element and Description |
---|---|
java.lang.String |
label
Label assigned to the figure
|