format.standard.trees.StandardTraitTree.scala Maven / Gradle / Ivy
package avrohugger
package format
package standard
package trees
import treehugger.forest._
import definitions._
import treehuggerDSL._
import org.apache.avro.Protocol
import scala.collection.JavaConversions._
object StandardTraitTree {
def toADTRootDef(protocol: Protocol) = {
val traitTree =
TRAITDEF(protocol.getName)
.withFlags(Flags.SEALED)
.withParents("Product")
.withParents("Serializable")
val treeWithScalaDoc = ScalaDocGen.docToScalaDoc(Right(protocol), traitTree)
treeWithScalaDoc
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy