InjectorVisitor class abstract
To be implemented by an emitter class to create a GeneratedInjector
.
- Implementers
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
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
visitMeta(
String className, String factoryName) → void -
Implement storing meta elements of this injector, such as its
name
. -
visitProvideClass(
int index, TokenElement token, Expression tokenExpression, Reference type, String? constructor, List< Expression> dependencies, bool isMulti) → void -
Implement providing a new instance of
type
, callingconstructor
. -
visitProvideExisting(
int index, TokenElement token, Expression tokenExpression, Reference type, Expression redirect, bool isMulti) → void -
Implement redirecting to
redirect
whentoken
is requested. -
visitProvideFactory(
int index, TokenElement token, Expression tokenExpression, Reference returnType, Reference function, List< Expression> dependencies, bool isMulti) → void -
Implement providing
token
by callingfunction
. -
visitProvideValue(
int index, TokenElement? token, Expression tokenExpression, Reference returnType, Expression value, bool isMulti) → void -
Implement providing
value
whentoken
is requested.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited