ZorphyDecoratorPlugin class abstract
Abstract base class for all DDA (Decorator-Driven Architecture) plugins.
Each plugin handles one or more decorator names. When zfa build scans
the project and finds a matching annotation, it calls onApply with:
method: metadata about the annotated element (class/method/field)decorator: the parsed@DecoratorName(...)with all argumentscontext: the mutable code-injection context (usespackage:code_builder)
Priority
Plugins define a priority to control ordering when multiple plugins target the same element. Higher-priority plugins are applied later, meaning their wrappers end up outermost (e.g., tracing around auth).
Constructors
- ZorphyDecoratorPlugin()
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- priority → int
-
Priority for ordering when multiple plugins target the same method.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- targetDecorator → String
-
The decorator name this plugin handles, without the
@prefix.no setter -
targetDecorators
→ List<
String> -
All decorator names this plugin handles, without the
@prefix.no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onApply(
MethodAST method, DecoratorAST decorator, ZorphyContext context) → void - Called when the AST scanner finds a decorator this plugin handles.
-
onBuildEnd(
Map< String, dynamic> config) → void - Optional: called once per build after all files are processed.
-
onBuildStart(
Map< String, dynamic> config) → void - Optional: called once per build before scanning begins.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited