AttributeFieldGenerator class

Emits the code for reading a single attribute (with optional type conversion.)

This handles: type conversion (@convert), boolean matching, and default values (if specified in the constructor).

Constructors

AttributeFieldGenerator(CommonElement element, ClassElement method, LibraryReader sourceInfo)

Properties

element CommonElement
Parsed information from the source field
final
hashCode int
The hash code for this object.
no setterinherited
method → ClassElement
Parsed information about the containing method
final
readAttribute String
Generate the code for reading and converting the attribute now, with type conversion from String and default value (if specified)
no setter
resolveDeferred String
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
setupDeferred String
If this is a @custom field, final initialization won't happen until just before the constructor. This generates a Completer for deferred initialization.
no setter
sourceInfo → LibraryReader
Parsed information about the containing file
final
toAction String
Generate the code
no setter

Methods

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