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

prompto.javascript.JavaScriptLiteral Maven / Gradle / Ivy

The newest version!
package prompto.javascript;

import prompto.transpiler.Transpiler;
import prompto.utils.CodeWriter;

public abstract class JavaScriptLiteral implements JavaScriptExpression {

	String text;
	
	protected JavaScriptLiteral(String text) {
		this.text = text;
	}
	
	@Override
	public void toDialect(CodeWriter writer) {
		writer.append(text);
	}
	
	@Override
	public void transpile(Transpiler transpiler) {
		transpiler.append(text);
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy