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

com.twitter.scrooge.java_generator.ServiceController.scala Maven / Gradle / Ivy

The newest version!
package com.twitter.scrooge.java_generator

import com.twitter.scrooge.ast._
import com.twitter.scrooge.ast.Service

class ServiceController(service: Service, generator: ApacheJavaGenerator, ns: Option[Identifier])
  extends TypeController(service, generator, ns) {
  val extends_iface = service.parent match {
    case Some(parent) => Map("name" -> generator.qualifyNamedType(parent.sid, parent.prefix).fullName)
    case None => false
  }
  val functions = service.functions map { f => new FunctionController(f, generator, ns) }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy