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

org.stjs.generator.plugin.STJSGenerationPlugin Maven / Gradle / Ivy

package org.stjs.generator.plugin;

import org.stjs.generator.check.CheckVisitor;
import org.stjs.generator.writer.WriterVisitor;

/**
 * 
 * See {@link org.stjs.javascript.annotation.UsePlugin} for details on how to list your plugin.
 * 
 * @author acraciun
 * 
 * @param 
 *            - the way JavaScript nodes are represented. For example Rhino AstNode
 */
public interface STJSGenerationPlugin {
	/**
	 * 
	 * @return true if this plugin is to be executed with any class, or false if the user should activate it via
	 *         {@link org.stjs.javascript.annotation.UsePlugin}
	 */
	boolean loadByDefault();

	/**
	 * add the check contributors
	 * 
	 * @param visitor
	 */
	void contributeCheckVisitor(CheckVisitor visitor);

	/**
	 * add the writer contributors
	 * 
	 * @param visitor
	 */
	void contributeWriteVisitor(WriterVisitor visitor);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy