DependencyReader class
Support for reading and parsing a class or function's "dependencies".
For example, the following class and its constructor:
class FooService {
FooService(BarService barService, [@Optional() @Inject(someToken) baz]);
}
Constructors
- DependencyReader({TokenReader tokenReader = const TokenReader()})
-
const
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
-
findConstructor(
ClassElement element) → ConstructorElement? -
Returns the constructor on a given
class
element
to use for injection. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
parseDependencies<
E extends Element> (Element? element) → DependencyInvocation< E> -
Returns parsed dependencies for the provided
element
. -
parseDependenciesList(
ExecutableElement element, List< DartObject> dependencies) → DependencyInvocation<ExecutableElement> -
Returns parsed dependencies for the provided
element
. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited