GenerateKnownTypeParsers

public final class GenerateKnownTypeParsers extends GenerationTask

This class writes the code for parsing of messages generated by Protobuf JS compiler.

Properties

Link copied to clipboard
public final static String TYPE_PARSERS_IMPORT_NAME
The name of the import of parsers registry.

Functions

Link copied to clipboard
public static GenerateKnownTypeParsers createFor(Directory generatedRoot)
Link copied to clipboard
protected void generateFor(FileSet fileSet)
Generates code for the Protobuf files.
Link copied to clipboard
public static ImmutableCollection<MessageType> targetTypes(FileDescriptor file)
Obtains types, which require parsers to be generated.

Inherited functions

Link copied to clipboard
protected FileSet filter(FileSet fileSet)
Filters out files that should not processed by the task.
Link copied to clipboard
protected Directory generatedRoot()
Obtains the root of the generated Protobuf sources.
Link copied to clipboard
public final void performFor(FileSet fileSet)
Generates code for the specified file set.