proto-js-plugin
1.9.0
jvm
proto-js-plugin
/
io.spine.js.generate.parse
/
GenerateKnownTypeParsers
Generate
Known
Type
Parsers
public
final
class
GenerateKnownTypeParsers
extends
GenerationTask
This class writes the
code
for parsing of messages generated by Protobuf JS compiler.
Members
Properties
TYPE_PARSERS_IMPORT_NAME
Link copied to clipboard
public
final
static
String
TYPE_PARSERS_IMPORT_NAME
The name of the import of parsers registry.
Functions
create
For
Link copied to clipboard
public
static
GenerateKnownTypeParsers
createFor
(
Directory generatedRoot
)
generate
For
Link copied to clipboard
protected
void
generateFor
(
FileSet fileSet
)
Generates code for the Protobuf files.
target
Types
Link copied to clipboard
public
static
ImmutableCollection<MessageType>
targetTypes
(
FileDescriptor file
)
Obtains types, which require parsers to be generated.
Inherited functions
filter
Link copied to clipboard
protected
FileSet
filter
(
FileSet fileSet
)
Filters out files that should not processed by the task.
generated
Root
Link copied to clipboard
protected
Directory
generatedRoot
(
)
Obtains the root of the generated Protobuf sources.
perform
For
Link copied to clipboard
public
final
void
performFor
(
FileSet fileSet
)
Generates code for the specified file set.