org.jetbrains.k2js.translate.reference
Class ArrayAccessTranslator

java.lang.Object
  extended by org.jetbrains.k2js.translate.general.AbstractTranslator
      extended by org.jetbrains.k2js.translate.reference.ArrayAccessTranslator
All Implemented Interfaces:
AccessTranslator
Direct Known Subclasses:
CachedArrayAccessTranslator

public class ArrayAccessTranslator
extends AbstractTranslator
implements AccessTranslator


Constructor Summary
protected ArrayAccessTranslator(JetArrayAccessExpression expression, TranslationContext context)
           
 
Method Summary
 CachedAccessTranslator getCached()
           
protected  com.google.dart.compiler.backend.js.ast.JsExpression translateArrayExpression()
           
 com.google.dart.compiler.backend.js.ast.JsExpression translateAsGet()
           
protected  com.google.dart.compiler.backend.js.ast.JsExpression translateAsGet(com.google.dart.compiler.backend.js.ast.JsExpression arrayExpression, java.util.List<com.google.dart.compiler.backend.js.ast.JsExpression> indexExpression)
           
 com.google.dart.compiler.backend.js.ast.JsExpression translateAsSet(com.google.dart.compiler.backend.js.ast.JsExpression setTo)
           
protected  com.google.dart.compiler.backend.js.ast.JsExpression translateAsSet(com.google.dart.compiler.backend.js.ast.JsExpression arrayExpression, java.util.List<com.google.dart.compiler.backend.js.ast.JsExpression> indexExpressions, com.google.dart.compiler.backend.js.ast.JsExpression toSetTo)
           
protected  java.util.List<com.google.dart.compiler.backend.js.ast.JsExpression> translateIndexExpressions()
           
 
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
 

Constructor Detail

ArrayAccessTranslator

protected ArrayAccessTranslator(@NotNull
                                JetArrayAccessExpression expression,
                                @NotNull
                                TranslationContext context)
Method Detail

translateAsGet

@NotNull
public com.google.dart.compiler.backend.js.ast.JsExpression translateAsGet()
Specified by:
translateAsGet in interface AccessTranslator

translateAsGet

@NotNull
protected com.google.dart.compiler.backend.js.ast.JsExpression translateAsGet(@NotNull
                                                                                      com.google.dart.compiler.backend.js.ast.JsExpression arrayExpression,
                                                                                      @NotNull
                                                                                      java.util.List<com.google.dart.compiler.backend.js.ast.JsExpression> indexExpression)

translateAsSet

@NotNull
public com.google.dart.compiler.backend.js.ast.JsExpression translateAsSet(@NotNull
                                                                                   com.google.dart.compiler.backend.js.ast.JsExpression setTo)
Specified by:
translateAsSet in interface AccessTranslator

translateAsSet

@NotNull
protected com.google.dart.compiler.backend.js.ast.JsExpression translateAsSet(@NotNull
                                                                                      com.google.dart.compiler.backend.js.ast.JsExpression arrayExpression,
                                                                                      @NotNull
                                                                                      java.util.List<com.google.dart.compiler.backend.js.ast.JsExpression> indexExpressions,
                                                                                      @NotNull
                                                                                      com.google.dart.compiler.backend.js.ast.JsExpression toSetTo)

translateIndexExpressions

@NotNull
protected java.util.List<com.google.dart.compiler.backend.js.ast.JsExpression> translateIndexExpressions()

translateArrayExpression

@NotNull
protected com.google.dart.compiler.backend.js.ast.JsExpression translateArrayExpression()

getCached

@NotNull
public CachedAccessTranslator getCached()
Specified by:
getCached in interface AccessTranslator