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

js.prompto.java.JavaExpressionList.js Maven / Gradle / Ivy

var ObjectList = require("../utils/ObjectList").ObjectList;

function JavaExpressionList(expression) {
	ObjectList.call(this);
	expression = expression || null;
	if(expression!==null) {
		this.add(expression);
	}
	return this;
}

JavaExpressionList.prototype = Object.create(ObjectList.prototype);
JavaExpressionList.prototype.constructor = JavaExpressionList;

JavaExpressionList.prototype.toDialect = function(writer) {
    if(this.length>0) {
        this.forEach(function(exp) {
            exp.toDialect(writer);
            writer.append(", ");
        });
        writer.trimLast(2);
    }
};

exports.JavaExpressionList = JavaExpressionList;




© 2015 - 2025 Weber Informatics LLC | Privacy Policy