org.jetbrains.k2js.translate.initializer
Class InitializerUtils

java.lang.Object
  extended by org.jetbrains.k2js.translate.initializer.InitializerUtils

public final class InitializerUtils
extends java.lang.Object


Method Summary
static com.google.dart.compiler.backend.js.ast.JsStatement create(Named named, com.google.dart.compiler.backend.js.ast.JsExpression value, TranslationContext context)
           
static com.google.dart.compiler.backend.js.ast.JsPropertyInitializer createPropertyInitializer(Named named, com.google.dart.compiler.backend.js.ast.JsExpression value, TranslationContext context)
           
static void generate(JetObjectDeclaration declaration, java.util.List<com.google.dart.compiler.backend.js.ast.JsStatement> initializers, java.util.List<com.google.dart.compiler.backend.js.ast.JsPropertyInitializer> definitions, TranslationContext context)
           
static com.google.dart.compiler.backend.js.ast.JsStatement generateInitializerForDelegate(TranslationContext context, JetProperty property)
           
static com.google.dart.compiler.backend.js.ast.JsStatement generateInitializerForProperty(TranslationContext context, PropertyDescriptor descriptor, com.google.dart.compiler.backend.js.ast.JsExpression value)
           
static com.google.dart.compiler.backend.js.ast.JsExpression toDataDescriptor(com.google.dart.compiler.backend.js.ast.JsExpression value, TranslationContext context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

generateInitializerForProperty

@NotNull
public static com.google.dart.compiler.backend.js.ast.JsStatement generateInitializerForProperty(@NotNull
                                                                                                         TranslationContext context,
                                                                                                         @NotNull
                                                                                                         PropertyDescriptor descriptor,
                                                                                                         @NotNull
                                                                                                         com.google.dart.compiler.backend.js.ast.JsExpression value)

generateInitializerForDelegate

@Nullable
public static com.google.dart.compiler.backend.js.ast.JsStatement generateInitializerForDelegate(@NotNull
                                                                                                          TranslationContext context,
                                                                                                          @NotNull
                                                                                                          JetProperty property)

generate

public static void generate(@NotNull
                            JetObjectDeclaration declaration,
                            @NotNull
                            java.util.List<com.google.dart.compiler.backend.js.ast.JsStatement> initializers,
                            @Nullable
                            java.util.List<com.google.dart.compiler.backend.js.ast.JsPropertyInitializer> definitions,
                            @NotNull
                            TranslationContext context)

create

public static com.google.dart.compiler.backend.js.ast.JsStatement create(Named named,
                                                                         com.google.dart.compiler.backend.js.ast.JsExpression value,
                                                                         TranslationContext context)

toDataDescriptor

public static com.google.dart.compiler.backend.js.ast.JsExpression toDataDescriptor(com.google.dart.compiler.backend.js.ast.JsExpression value,
                                                                                    TranslationContext context)

createPropertyInitializer

public static com.google.dart.compiler.backend.js.ast.JsPropertyInitializer createPropertyInitializer(Named named,
                                                                                                      com.google.dart.compiler.backend.js.ast.JsExpression value,
                                                                                                      TranslationContext context)