All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jsweet.transpiler.extension.RemoveJavaDependenciesFactory Maven / Gradle / Ivy

The newest version!
package org.jsweet.transpiler.extension;

import org.jsweet.transpiler.JSweetContext;
import org.jsweet.transpiler.JSweetFactory;

/**
 * Tunes the transpiler to avoid using Java APIs as much as possible (JDK).
 * 
 * 

* By default, the transpiler generates lists, maps and other Java elements as * is. It expects the J4TS runtime and assumes a default implementation at * runtime. * *

* When this extension is selected, the transpiler will try to translate Java * APIs to native JavaScript APIs. It will report transpilation errors when a * Java element cannot be translated to a JavaScript element. */ public class RemoveJavaDependenciesFactory extends JSweetFactory { @Override public Java2TypeScriptAdapter createAdapter(JSweetContext context) { logger.info("force remove Java dependency adapter..."); return new RemoveJavaDependenciesAdapter(context); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy