|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jetbrains.k2js.translate.general.Translation
public final class Translation
This class provides a interface which all translators use to interact with each other. Goal is to simplify interaction between translators.
| Method Summary | |
|---|---|
static JsNode |
doTranslateExpression(JetExpression expression,
TranslationContext context)
|
static FunctionTranslator |
functionTranslator(JetDeclarationWithBody function,
TranslationContext context)
|
static JsProgram |
generateAst(BindingContext bindingContext,
java.util.Collection<JetFile> files,
MainCallParameters mainCallParameters,
Config config)
|
static PatternTranslator |
patternTranslator(TranslationContext context)
|
static JsExpression |
translateAsExpression(JetExpression expression,
TranslationContext context)
|
static JsStatement |
translateAsStatement(JetExpression expression,
TranslationContext context)
|
static JsNode |
translateExpression(JetExpression expression,
TranslationContext context)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
@NotNull
public static FunctionTranslator functionTranslator(@NotNull
JetDeclarationWithBody function,
@NotNull
TranslationContext context)
@NotNull
public static PatternTranslator patternTranslator(@NotNull
TranslationContext context)
@NotNull
public static JsNode translateExpression(@NotNull
JetExpression expression,
@NotNull
TranslationContext context)
@NotNull
public static JsNode doTranslateExpression(JetExpression expression,
TranslationContext context)
@NotNull
public static JsExpression translateAsExpression(@NotNull
JetExpression expression,
@NotNull
TranslationContext context)
@NotNull
public static JsStatement translateAsStatement(@NotNull
JetExpression expression,
@NotNull
TranslationContext context)
@NotNull
public static JsProgram generateAst(@NotNull
BindingContext bindingContext,
@NotNull
java.util.Collection<JetFile> files,
@NotNull
MainCallParameters mainCallParameters,
@NotNull
Config config)
throws TranslationException
TranslationException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||