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

format.standard.trees.StandardTraitTree.scala Maven / Gradle / Ivy

There is a newer version: 1.0.0-RC23
Show newest version
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