org.fife.rsta.ac.js.engine.EMCAJavaScriptEngine Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of languagesupport Show documentation
Show all versions of languagesupport Show documentation
A library adding code completion and other advanced features for Java, JavaScript, Perl, and other languages to RSyntaxTextArea.
package org.fife.rsta.ac.js.engine;
import org.fife.rsta.ac.js.SourceCompletionProvider;
import org.fife.rsta.ac.js.ast.jsType.JavaScriptTypesFactory;
import org.fife.rsta.ac.js.ast.parser.JavaScriptAstParser;
import org.fife.rsta.ac.js.ast.parser.JavaScriptParser;
import org.fife.rsta.ac.js.resolver.JavaScriptCompletionResolver;
import org.fife.rsta.ac.js.resolver.JavaScriptResolver;
public class EMCAJavaScriptEngine implements JavaScriptEngine {
public static final String EMCA_ENGINE = "EMCA";
public JavaScriptResolver getJavaScriptResolver(SourceCompletionProvider provider) {
return new JavaScriptCompletionResolver(provider);
}
public JavaScriptTypesFactory getJavaScriptTypesFactory(SourceCompletionProvider provider) {
return JavaScriptTypesFactory.getDefaultJavaScriptTypesFactory();
}
public JavaScriptParser getParser(SourceCompletionProvider provider, int dot, boolean preProcessingMode) {
return new JavaScriptAstParser(provider, dot, preProcessingMode);
}
}