format.scavro.trees.ScavroTraitTree.scala Maven / Gradle / Ivy
package avrohugger
package format
package scavro
package trees
import treehugger.forest._
import definitions._
import treehuggerDSL._
import org.apache.avro.Protocol
object ScavroTraitTree {
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