public class GenerateJavaScriptAST extends Object
JProgram
node.Modifier and Type | Method and Description |
---|---|
static Pair<JavaToJavaScriptMap,Set<JsNode>> |
exec(TreeLogger logger,
JProgram program,
JsProgram jsProgram,
CompilerContext compilerContext,
ResolveRuntimeTypeReferences.TypeMapper<?> typeMapper,
Map<StandardSymbolData,JsName> symbolTable,
PermProps props)
This is the main entry point for the translation from Java to JavaScript.
|
public static Pair<JavaToJavaScriptMap,Set<JsNode>> exec(TreeLogger logger, JProgram program, JsProgram jsProgram, CompilerContext compilerContext, ResolveRuntimeTypeReferences.TypeMapper<?> typeMapper, Map<StandardSymbolData,JsName> symbolTable, PermProps props)
logger
- a TreeLoggerprogram
- a Java ASTjsProgram
- an (empty) JavaScript ASTsymbolTable
- an (empty) symbol table that will be populated hereCopyright © 2018. All rights reserved.