com.trueaccord.scalapb

compiler

package compiler

Visibility
  1. Public
  2. All

Type Members

  1. trait DescriptorPimps extends AnyRef

  2. trait FPrintable extends AnyRef

  3. case class FunctionalPrinter(content: List[String] = Nil, indentLevel: Int = 0) extends Product with Serializable

  4. case class GeneratorParams(javaConversions: Boolean = false, flatPackage: Boolean = false) extends Product with Serializable

  5. class PosixProtocDriver extends ProtocDriver

    A driver that creates a named pipe and sets up a shell script as a protoc plugin

  6. class ProtobufGenerator extends DescriptorPimps

  7. trait ProtocDriver extends AnyRef

    A ProtocDriver instance provides a platform-dependent way to launch protoc and and set up a two-way communication channel between protoc and this JVM.

    A ProtocDriver instance provides a platform-dependent way to launch protoc and and set up a two-way communication channel between protoc and this JVM.

    protoc is able to launch plugins. A plugin is expected to take a serialized CodeGenerationRequest via stdin and serialize a CodeGenerationRequest to stdout. The idea in ProtocDriver is to create a minimal plugin that wires its stdin/stdout to this JVM.

    The two-way communication always goes as follows:

    1. protoc writes a request to the stdin of a plugin 2. plugin writes the data to the channel 3. this JVM reads it, interprets it as CodeGenerationRequest and process it. 4. this JVM writes a CodeGenerationResponse to the channel 5. this JVM closes the channel. 6. the plugin reads the data and writes it to standard out. 7. protoc handles the CodeGenerationResponse (creates Scala sources)

  8. class WindowsProtocDriver extends ProtocDriver

    A driver that binds a server socket to a local interface.

    A driver that binds a server socket to a local interface. The plugin is a batch script that invokes Python, which will communicate wire its stdin and stdout to this socket.

Value Members

  1. object Main extends App

  2. object Process

  3. object ProtobufGenerator

  4. object Types

Ungrouped