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
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
    Enumerates the available translation options for enhanced for loops.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description