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

prompto.java.JavaExpressionList Maven / Gradle / Ivy

The newest version!
package prompto.java;

import prompto.utils.CodeWriter;
import prompto.utils.ObjectList;

public class JavaExpressionList extends ObjectList {

	private static final long serialVersionUID = 1L;

	public JavaExpressionList() {
	}
	
	public JavaExpressionList(JavaExpression expression) {
		this.add(expression);
	}

	public void toDialect(CodeWriter writer) {
		if(this.size()>0) {
			for(JavaExpression exp : this) {
				exp.toDialect(writer);
				writer.append(", ");
			}
			writer.trimLast(2);
		}
	}
	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy