com.trueaccord.scalapb

compiler

package compiler

Visibility
  1. Public
  2. All

Type Members

  1. trait DescriptorPimps extends AnyRef

  2. sealed trait Expression extends Product with Serializable

  3. case class ExpressionList(l: List[LiteralExpression]) extends Expression with Product with Serializable

  4. trait FPrintable extends AnyRef

  5. case class FunctionApplication(name: String) extends LiteralExpression with Product with Serializable

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

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

  8. sealed trait LiteralExpression extends Expression

  9. case class MethodApplication(name: String) extends LiteralExpression with Product with Serializable

  10. class PosixProtocDriver extends ProtocDriver

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

  11. class ProtobufGenerator extends DescriptorPimps

  12. 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)

  13. 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 ExpressionBuilder

  2. object Identity extends LiteralExpression with Product with Serializable

  3. object Main extends App

  4. object Process

  5. object ProtobufGenerator

  6. object ProtocDriverFactory

  7. object Types

Ungrouped