LibraryDeclaration class abstract final

Represents a Dart library declaration within JetLeaf’s reflection and generation system.

A LibraryDeclaration models the source-level library abstraction, including its URI, containing package, and associated metadata. It extends SourceDeclaration to provide a standardized interface for querying libraries across packages and source files.

This class is abstract; concrete implementations are provided by JetLeaf’s internal materialization system.

Typical usage includes:

  • Resolving the library URI
  • Accessing the containing package
  • Bridging runtime objects to library-level declarations
Inheritance

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

equalizedProperties() List<Object?>
Mixin-style contract for value-based equality, hashCode, and toString.
inherited
getAnnotations() List<AnnotationDeclaration>
Returns all annotations applied to this declaration in source code.
inherited
getDebugIdentifier() String
Returns the stable debug identifier for this entity.
inherited
getIsPublic() bool
Indicates whether this declaration is publicly visible.
inherited
getIsSynthetic() bool
Indicates whether this declaration is synthetic.
inherited
getName() String
Returns the simple (unqualified) name of this declaration.
override
getPackage() Package
Returns the Package that contains this library.
getSourceLocation() Uri?
Returns the URI pointing to the source location where this declaration is defined.
inherited
getType() Type
Returns the Dart Type represented by this declaration.
inherited
getUri() String
Returns the URI of the library.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, Object>
Serializes this declaration into a JSON-compatible map.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited