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

prompto.python.PythonArgumentList Maven / Gradle / Ivy

The newest version!
package prompto.python;

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

public class PythonArgumentList extends ObjectList {
	
	private static final long serialVersionUID = 1L;

	public PythonArgumentList() {
	}

	public PythonArgumentList(PythonArgument arg) {
		this.add(arg);
	}

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy