org.jetbrains.k2js.translate.expression.foreach
Class ForTranslator

java.lang.Object
  extended by org.jetbrains.k2js.translate.general.AbstractTranslator
      extended by org.jetbrains.k2js.translate.expression.foreach.ForTranslator
Direct Known Subclasses:
ArrayForTranslator, IteratorForTranslator, RangeForTranslator, RangeLiteralForTranslator

public abstract class ForTranslator
extends AbstractTranslator


Field Summary
protected  JetForExpression expression
           
protected  com.google.dart.compiler.backend.js.ast.JsName parameterName
           
 
Constructor Summary
protected ForTranslator(JetForExpression forExpression, TranslationContext context)
           
 
Method Summary
static com.google.dart.compiler.backend.js.ast.JsStatement translate(JetForExpression expression, TranslationContext context)
           
protected  com.google.dart.compiler.backend.js.ast.JsStatement translateBody(com.google.dart.compiler.backend.js.ast.JsExpression itemValue)
           
protected  com.google.dart.compiler.backend.js.ast.JsStatement translateOriginalBodyExpression()
           
 
Methods inherited from class org.jetbrains.k2js.translate.general.AbstractTranslator
bindingContext, context, program
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

expression

@NotNull
protected final JetForExpression expression

parameterName

@NotNull
protected final com.google.dart.compiler.backend.js.ast.JsName parameterName
Constructor Detail

ForTranslator

protected ForTranslator(@NotNull
                        JetForExpression forExpression,
                        @NotNull
                        TranslationContext context)
Method Detail

translate

@NotNull
public static com.google.dart.compiler.backend.js.ast.JsStatement translate(@NotNull
                                                                                    JetForExpression expression,
                                                                                    @NotNull
                                                                                    TranslationContext context)

translateOriginalBodyExpression

@NotNull
protected com.google.dart.compiler.backend.js.ast.JsStatement translateOriginalBodyExpression()

translateBody

@NotNull
protected com.google.dart.compiler.backend.js.ast.JsStatement translateBody(com.google.dart.compiler.backend.js.ast.JsExpression itemValue)