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, ClassAliasingMap aliasingMap, TranslationContext context)
           
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)
           
 void translateClassOrObjectCreation(com.google.dart.compiler.backend.js.ast.JsInvocation createInvocation)
           
 com.google.dart.compiler.backend.js.ast.JsExpression translateClassOrObjectCreation(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
                                                                                                 ClassAliasingMap aliasingMap,
                                                                                                 @NotNull
                                                                                                 TranslationContext context)

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)

translateClassOrObjectCreation

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

translateClassOrObjectCreation

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