LibraryReader class
A high-level wrapper API with common functionality for LibraryElement
.
Constructors
- LibraryReader(LibraryElement element)
Properties
-
allElements
→ Iterable<
Element> -
All of the declarations in this library.
no setter
-
classes
→ Iterable<
ClassElement> -
All of the elements representing classes in this library.
no setter
- element → LibraryElement
-
final
-
enums
→ Iterable<
EnumElement> -
All of the elements representing enums in this library.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
annotatedWith(
TypeChecker checker, {bool throwOnUnresolved = true}) → Iterable< AnnotatedElement> -
All of the declarations in this library annotated with
checker
. -
annotatedWithExact(
TypeChecker checker, {bool throwOnUnresolved = true}) → Iterable< AnnotatedElement> -
All of the declarations in this library annotated with exactly
checker
. -
findType(
String name) → ClassElement? -
Returns a top-level
ClassElement
publicly visible in byname
. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pathToAsset(
AssetId asset) → Uri -
Returns a Uri from the current library to the target
asset
. -
pathToElement(
Element element) → Uri -
Returns a Uri from the current library to the target
element
. -
pathToUrl(
dynamic toUrlOrString) → Uri - Returns a Uri from the current library to the one provided.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited