CodeGenerator class
- Inheritance
-
- Object
- ProtobufContainer
- CodeGenerator
Constructors
-
CodeGenerator.new(Stream<
List< _streamIn, IOSink _streamOut)int> >
Properties
- binaryDescriptorName → String
-
no setterinherited
- classname → String?
-
no setteroverride
- dottedName → String
-
The fully qualified name with a leading '.'.
no setterinherited
-
fieldPath
→ List<
int> ? -
The field path contains the field IDs and indices (for repeated fields)
that lead to the proto member corresponding to a piece of generated code.
Repeated fields in the descriptor are further identified by the index of
the message in question.
For more information see
https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/descriptor.proto#L728
no setteroverride
- fileGen → FileGenerator?
-
The generator of the .pb.dart file defining this entity.
no setteroverride
- fileImportPrefix → String
-
no setterinherited
- fullName → String
-
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- package → String
-
no setteroverride
- parent → ProtobufContainer?
-
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- toplevelParent → ProtobufContainer?
-
The top-level parent of this entity, or itself if it is a top-level
entity.
no setterinherited
Methods
-
generate(
{Map< String, SingleOptionParser> ? optionParsers, OutputConfiguration config = const DefaultOutputConfiguration()}) → void -
Runs the code generator. The optional
optionParsers
can be used to change how command line options are parsed (seeparseGenerationOptions
for details), andconfig
can be used to override where generated files are created and how imports between generated files are constructed (seeOutputConfiguration
for details). -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited