scala.class_impls_getsetfields.ssp Maven / Gradle / Ivy
The newest version!
<%
// Copyright 2013 Foursquare Labs Inc. All Rights Reserved.
import com.foursquare.spindle.codegen.runtime.StructLike
%>
<%@ val cls: StructLike %>
// Returns the values of the set fields on this object, in id order.
def getSetFields: Seq[Any] = {
var ret: List[Any] = Nil
#for (field <- cls.fields)
if (${field.isSetName}) ret = ${field.defaultName} :: ret
#end
ret.reverse
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy