GeneratorAdapter class abstract

An adapter that will call a generator to write code to a sink based on the contents of PigeonOptions.

Implementers

Constructors

GeneratorAdapter(List<FileType> fileTypeList)
Constructor for GeneratorAdapter

Properties

fileTypeList List<FileType>
A list of file types the generator should create.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

generate(StringSink sink, PigeonOptions options, Root root, FileType fileType) → void
Write the generated code described in root to sink using the options.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
shouldGenerate(PigeonOptions options, FileType fileType) IOSink?
Returns an IOSink instance to be written to if the GeneratorAdapter should generate.
toString() String
A string representation of this object.
inherited
validate(PigeonOptions options, Root root) List<Error>
Generates errors that would only be appropriate for this GeneratorAdapter.

Operators

operator ==(Object other) bool
The equality operator.
inherited