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.JsInvocation generateClassCreation(JetClassOrObject classDeclaration, ClassDescriptor descriptor, TranslationContext context)
           
static com.google.dart.compiler.backend.js.ast.JsInvocation generateClassCreation(JetClassOrObject classDeclaration, TranslationContext context)
           
static com.google.dart.compiler.backend.js.ast.JsExpression generateObjectLiteral(JetObjectDeclaration objectDeclaration, ClassDescriptor descriptor, TranslationContext context)
           
static com.google.dart.compiler.backend.js.ast.JsExpression generateObjectLiteral(JetObjectDeclaration objectDeclaration, TranslationContext context)
           
 com.google.dart.compiler.backend.js.ast.JsInvocation translate()
           
 com.google.dart.compiler.backend.js.ast.JsInvocation 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.JsInvocation generateClassCreation(@NotNull
                                                                                                 JetClassOrObject classDeclaration,
                                                                                                 @NotNull
                                                                                                 TranslationContext context)

generateClassCreation

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

generateObjectLiteral

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

generateObjectLiteral

@NotNull
public static com.google.dart.compiler.backend.js.ast.JsExpression generateObjectLiteral(@NotNull
                                                                                                 JetObjectDeclaration objectDeclaration,
                                                                                                 @NotNull
                                                                                                 ClassDescriptor descriptor,
                                                                                                 @NotNull
                                                                                                 TranslationContext context)

translate

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

translate

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