Annotation Type LoopTranslation


  • @Target(LOCAL_VARIABLE)
    @Retention(SOURCE)
    public @interface LoopTranslation
    Annotation that specifies how an enhanced for loop should be translated by the J2ObjC translator.

    Example usage:

     for (@LoopTranslation(LoopStyle.JAVA_ITERATOR) Runnable r : tasks) {
       r.run();
     }
    Author:
    Keith Stanger