public final class GenerateKnownTypeParsers extends GenerationTask
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
TYPE_PARSERS_IMPORT_NAME
The name of the import of parsers registry.
|
Modifier and Type | Method and Description |
---|---|
static GenerateKnownTypeParsers |
createFor(io.spine.code.fs.js.Directory generatedRoot) |
protected void |
generateFor(io.spine.code.proto.FileSet fileSet)
Generates code for the Protobuf files.
|
static com.google.common.collect.ImmutableCollection<io.spine.type.MessageType> |
targetTypes(com.google.protobuf.Descriptors.FileDescriptor file)
Obtains types, which require parsers to be generated.
|
filter, generatedRoot, performFor
public static final java.lang.String TYPE_PARSERS_IMPORT_NAME
Visible so the other generators such as a field can use the import.
public static GenerateKnownTypeParsers createFor(io.spine.code.fs.js.Directory generatedRoot)
public static com.google.common.collect.ImmutableCollection<io.spine.type.MessageType> targetTypes(com.google.protobuf.Descriptors.FileDescriptor file)
The types with the special JSON mapping should be skipped. Parsers for the types are provided by the Spine Web.
protected void generateFor(io.spine.code.proto.FileSet fileSet)
GenerationTask
generateFor
in class GenerationTask