org.jetbrains.k2js.translate.declaration
Class ClassTranslator

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

public final class ClassTranslator
extends AbstractTranslator

Generates a definition of a single class.


Method Summary
static com.google.dart.compiler.backend.js.ast.JsExpression generateClassCreation(JetClassOrObject classDeclaration, ClassDescriptor descriptor, TranslationContext context)
           
static com.google.dart.compiler.backend.js.ast.JsExpression generateClassCreation(JetClassOrObject classDeclaration, TranslationContext context)
           
static com.google.dart.compiler.backend.js.ast.JsExpression generateObjectLiteral(JetObjectLiteralExpression objectLiteralExpression, TranslationContext context)
           
 com.google.dart.compiler.backend.js.ast.JsExpression translate()
           
 void translate(com.google.dart.compiler.backend.js.ast.JsInvocation createInvocation)
           
 com.google.dart.compiler.backend.js.ast.JsExpression translate(TranslationContext declarationContext)
           
 
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
 

Method Detail

generateClassCreation

@NotNull
public static com.google.dart.compiler.backend.js.ast.JsExpression generateClassCreation(@NotNull
                                                                                                 JetClassOrObject classDeclaration,
                                                                                                 @NotNull
                                                                                                 TranslationContext context)

generateClassCreation

@NotNull
public static com.google.dart.compiler.backend.js.ast.JsExpression generateClassCreation(@NotNull
                                                                                                 JetClassOrObject classDeclaration,
                                                                                                 @NotNull
                                                                                                 ClassDescriptor descriptor,
                                                                                                 @NotNull
                                                                                                 TranslationContext context)

generateObjectLiteral

@NotNull
public static com.google.dart.compiler.backend.js.ast.JsExpression generateObjectLiteral(@NotNull
                                                                                                 JetObjectLiteralExpression objectLiteralExpression,
                                                                                                 @NotNull
                                                                                                 TranslationContext context)

translate

@NotNull
public com.google.dart.compiler.backend.js.ast.JsExpression translate()

translate

@NotNull
public com.google.dart.compiler.backend.js.ast.JsExpression translate(@NotNull
                                                                              TranslationContext declarationContext)

translate

public void translate(@NotNull
                      com.google.dart.compiler.backend.js.ast.JsInvocation createInvocation)