scala.write.seq.ssp Maven / Gradle / Ivy
The newest version!
<%@ val renderType: com.foursquare.spindle.codegen.runtime.SeqRenderType %>
<%@ val valueExpr: String %>
<%@ val indent: String %>
<% import renderType.elem %>
${indent}oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.${elem.ttype.name}, ${valueExpr}.size))
${indent}${valueExpr}.foreach(element => {
<% render("../" + elem.fieldWriteTemplate, Map("renderType" -> elem, "valueExpr" -> "element", "indent" -> (indent + " "))) %>
${indent}})
${indent}oprot.writeListEnd()
© 2015 - 2025 Weber Informatics LLC | Privacy Policy