be.ugent.twijug.jclops.annotations
Annotation Type Repeatable


@Retention(value=RUNTIME)
@Target(value=METHOD)
public @interface Repeatable

Marker annotation which indicates that an option may be repeated more than once on the same command line. The default behaviour disallows this.

For example, the following configuration enables the option --debug to be repeated several times (with the effect that the debug level will be increased for every occurence).

 public class ContextClass {
 
     private int debugLevel = 0;
 
     @Repeatable
     public void setDebug () {
         debugLevel ++;
     }
 }