PackageConfigEntry class

Represents a single entry in a parsed package_config.json file.

A PackageConfigEntry provides the essential metadata needed to resolve package-relative file paths during scanning and runtime analysis. It captures both the declared URIs from the configuration file and a fully resolved absolute filesystem path for the package’s root.

JetLeaf uses this model to:

  • Locate source files belonging to a specific package
  • Resolve package: URIs into physical paths
  • Distinguish between the root package and its dependencies
  • Support runtime scanning and reflection operations

Constructors

PackageConfigEntry({required String name, required Uri rootUri, required Uri packageUri, required String absoluteRootPath})
Creates a new PackageConfigEntry with fully initialized metadata.
PackageConfigEntry.fromJson(Map<String, dynamic> json, String packageConfigDir)
Builds a PackageConfigEntry directly from a JSON object read from package_config.json.
factory

Properties

absoluteRootPath String
The fully resolved absolute filesystem path of the package’s root.
final
hashCode int
The hash code for this object.
no setterinherited
name String
The package name as declared in package_config.json.
final
packageUri Uri
The base URI used when resolving package: imports for this package.
final
rootUri Uri
The root URI of the package as specified in the configuration.
final
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

Operators

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