Top Description Inners Methods
com.google.j2objc.annotations

public @Interface LoopTranslation

extends Annotation
Annotations
@Target:LOCAL_VARIABLE
@Retention:SOURCE
Imports
java.lang.annotation.ElementType, .Retention, .RetentionPolicy, .Target

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 and Inner Type Summary

Modifier and TypeClass and Description
public static enum
LoopTranslation.LoopStyle

Enumerates the available translation options for enhanced for loops.

Method Summary

Modifier and TypeMethod and Description
public LoopTranslation.LoopStyle
Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

valueback to summary
public LoopTranslation.LoopStyle value()
com.google.j2objc.annotations back to summary

public final Enum LoopTranslation.LoopStyle

extends Enum<LoopTranslation.LoopStyle>
Class Inheritance

Enumerates the available translation options for enhanced for loops. FAST_ENUMERATION is the default style emitted by the translator.

Field Summary

Modifier and TypeField and Description
public static final LoopTranslation.LoopStyle
public static final LoopTranslation.LoopStyle

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static LoopTranslation.LoopStyle
public static LoopTranslation.LoopStyle[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

FAST_ENUMERATIONback to summary
public static final LoopTranslation.LoopStyle FAST_ENUMERATION
JAVA_ITERATORback to summary
public static final LoopTranslation.LoopStyle JAVA_ITERATOR

Constructor Detail

LoopStyleback to summary
private LoopStyle()

Method Detail

valueOfback to summary
public static LoopTranslation.LoopStyle valueOf(String name)
valuesback to summary
public static LoopTranslation.LoopStyle[] values()