org.jetbrains.kotlin.js.translate.declaration
Class ClassTranslator

java.lang.Object
  extended by org.jetbrains.kotlin.js.translate.general.AbstractTranslator
      extended by org.jetbrains.kotlin.js.translate.declaration.ClassTranslator

public final class ClassTranslator
extends AbstractTranslator

Generates a definition of a single class.


Method Summary
static JsInvocation generateClassCreation(JetClassOrObject classDeclaration, TranslationContext context)
           
static JsExpression generateObjectLiteral(JetObjectDeclaration objectDeclaration, TranslationContext context)
           
 JsInvocation translate()
           
 JsInvocation translate(TranslationContext declarationContext)
           
 
Methods inherited from class org.jetbrains.kotlin.js.translate.general.AbstractTranslator
bindingContext, context, program
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

generateClassCreation

@NotNull
public static JsInvocation generateClassCreation(@NotNull
                                                         JetClassOrObject classDeclaration,
                                                         @NotNull
                                                         TranslationContext context)

generateObjectLiteral

@NotNull
public static JsExpression generateObjectLiteral(@NotNull
                                                         JetObjectDeclaration objectDeclaration,
                                                         @NotNull
                                                         TranslationContext context)

translate

@NotNull
public JsInvocation translate()

translate

@NotNull
public JsInvocation translate(@NotNull
                                      TranslationContext declarationContext)