CodeGenApp

nscn.polaris2.protoc.bridge.codegen.CodeGenApp

Base class for a protoc code generator.

Implementors provide process and, if their .proto options are custom extensions, registerExtensions - without the registry the options arrive as unknown fields and silently read back as defaults.

The same object works as a standalone protoc-gen-* executable (via main) and as an in-JVM generator driven by the bridge (via run).

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

Concrete methods

final def main(args: Array[String]): Unit
def registerExtensions(registry: ExtensionRegistry): Unit
final override def run(req: Array[Byte]): Array[Byte]

Attributes

Definition Classes
final def run(input: CodedInputStream): Array[Byte]

Never throws: a generator that dies without writing a response leaves protoc waiting on the pipe, so every failure is converted into a CodeGeneratorResponse.error.

Never throws: a generator that dies without writing a response leaves protoc waiting on the pipe, so every failure is converted into a CodeGeneratorResponse.error.

Attributes

Inherited methods

Artifacts the generated code needs on the consumer's classpath.

Artifacts the generated code needs on the consumer's classpath.

Attributes

Inherited from:
ProtocCodeGenerator