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  JetMultiDeclaration multiParameter
           
protected  JsName parameterName
           
 
Constructor Summary
protected ForTranslator(JetForExpression forExpression, TranslationContext context)
           
 
Method Summary
static JsStatement translate(JetForExpression expression, TranslationContext context)
           
protected  JsStatement translateBody(JsExpression itemValue)
           
 
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 JsName parameterName

multiParameter

@Nullable
protected final JetMultiDeclaration multiParameter
Constructor Detail

ForTranslator

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

translate

@NotNull
public static JsStatement translate(@NotNull
                                            JetForExpression expression,
                                            @NotNull
                                            TranslationContext context)

translateBody

@NotNull
protected JsStatement translateBody(@Nullable
                                            JsExpression itemValue)