SandboxedJvmGenerator

nscn.polaris2.protoc.bridge.SandboxedJvmGenerator
See theSandboxedJvmGenerator companion class

Attributes

Companion
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Type members

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements.

The names of the product elements.

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type.

The name of the type.

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def forModule(name: String, artifact: Artifact, generatorClass: String, suggestedDependencies: Seq[Artifact]): SandboxedJvmGenerator

Loads a generator declared as a Scala object named generatorClass.

Loads a generator declared as a Scala object named generatorClass.

Attributes

def forResolver(name: String, artifact: Artifact, suggestedDependencies: Seq[Artifact], resolver: ClassLoader => ProtocCodeGenerator): SandboxedJvmGenerator

Loads a generator through a caller-supplied resolver.

Loads a generator through a caller-supplied resolver.

Attributes

def load(generatorClass: String, loader: ClassLoader): ProtocCodeGenerator

Reflectively adapts <generatorClass>$.MODULE$ to ProtocCodeGenerator.

Reflectively adapts <generatorClass>$.MODULE$ to ProtocCodeGenerator.

Reflection rather than a cast: the loaded class comes from a different ClassLoader, so its ProtocCodeGenerator is a different Class object and a cast would throw. Only the run(Array[Byte]): Array[Byte] shape is shared.

Attributes