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

org.fife.rsta.ac.js.engine.EMCAJavaScriptEngine Maven / Gradle / Ivy

package org.fife.rsta.ac.js.engine;

import org.fife.rsta.ac.js.SourceCompletionProvider;
import org.fife.rsta.ac.js.ast.TypeDeclarationOptions;
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 extends JavaScriptEngine {

	public static final String EMCA_ENGINE = "EMCA";
	
	@Override
	public JavaScriptResolver getJavaScriptResolver(SourceCompletionProvider provider) {
		return new JavaScriptCompletionResolver(provider);
	}

	@Override
	public JavaScriptTypesFactory getJavaScriptTypesFactory(SourceCompletionProvider provider) {
		if(jsFactory == null)
			jsFactory = JavaScriptTypesFactory.getDefaultJavaScriptTypesFactory(provider.getTypesFactory());
		
		return jsFactory;
	}


	@Override
	public JavaScriptParser getParser(SourceCompletionProvider provider, int dot, TypeDeclarationOptions options) {
		return new JavaScriptAstParser(provider, dot, options);
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy