org.jetbrains.k2js.translate.expression
Class PatternTranslator

java.lang.Object
  extended by org.jetbrains.k2js.translate.general.AbstractTranslator
      extended by org.jetbrains.k2js.translate.expression.PatternTranslator

public final class PatternTranslator
extends AbstractTranslator


Method Summary
static PatternTranslator newInstance(TranslationContext context)
           
 com.google.dart.compiler.backend.js.ast.JsExpression translateExpressionForExpressionPattern(JetExpression patternExpression)
           
 com.google.dart.compiler.backend.js.ast.JsExpression translateExpressionPattern(com.google.dart.compiler.backend.js.ast.JsExpression expressionToMatch, JetExpression patternExpression)
           
 com.google.dart.compiler.backend.js.ast.JsExpression translateIsCheck(com.google.dart.compiler.backend.js.ast.JsExpression subject, JetTypeReference typeReference)
           
 com.google.dart.compiler.backend.js.ast.JsExpression translateIsExpression(JetIsExpression expression)
           
 
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

newInstance

@NotNull
public static PatternTranslator newInstance(@NotNull
                                                    TranslationContext context)

translateIsExpression

@NotNull
public com.google.dart.compiler.backend.js.ast.JsExpression translateIsExpression(@NotNull
                                                                                          JetIsExpression expression)

translateIsCheck

@NotNull
public com.google.dart.compiler.backend.js.ast.JsExpression translateIsCheck(@NotNull
                                                                                     com.google.dart.compiler.backend.js.ast.JsExpression subject,
                                                                                     @NotNull
                                                                                     JetTypeReference typeReference)

translateExpressionPattern

@NotNull
public com.google.dart.compiler.backend.js.ast.JsExpression translateExpressionPattern(@NotNull
                                                                                               com.google.dart.compiler.backend.js.ast.JsExpression expressionToMatch,
                                                                                               @NotNull
                                                                                               JetExpression patternExpression)

translateExpressionForExpressionPattern

@NotNull
public com.google.dart.compiler.backend.js.ast.JsExpression translateExpressionForExpressionPattern(@NotNull
                                                                                                            JetExpression patternExpression)