Zorphy2Generator class
Generates Zorphy2 code from annotated classes.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- typeChecker → TypeChecker
-
Returns the annotation type checker for Zorphy2.
no setter
Methods
-
generate(
LibraryReader library, BuildStep buildStep) → FutureOr< String> -
Generates code for all annotated elements in a library.
inherited
-
generateForAnnotatedElement(
Element element, ConstantReader annotation, BuildStep buildStep, List< ClassElement> allClasses) → dynamic - Generates code for a single annotated element.
-
getAllFieldsIncludingSubtypes(
ClassElement element) → List< NameTypeClassComment> - Collects all fields declared on this element and its Zorphy subtypes.
-
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
Static Properties
-
allAnnotatedClasses
→ Map<
String, ClassElement> -
Returns all annotated classes discovered during generation.
no setter