declaration library

📜 Jetleaf Core Declarations & Reflective Metadata

Provides reflective metadata models representing Dart classes, methods, constructors, fields, annotations, parameters, assets, and packages.

Classes

AnnotationDeclaration
Represents an annotation that has been applied to a class, method, field, parameter, or other Dart declarations at runtime.
AnnotationFieldDeclaration
Represents a field of an annotation.
Asset
Represents a non-Dart static resource (e.g., HTML, CSS, images).
BaseDeclaration
Base abstraction for all Jetleaf declaration models.
CacheSerializable
Interface for declarations that can serialize/deserialize to/from binary cache.
ClassDeclaration
Represents a reflected Dart class and all of its metadata, including fields, methods, constructors, superclasses, mixins, interfaces, and declaration-level modifiers (abstract, sealed, etc.).
ClosureDeclaration
Represents a closure or anonymous function as a class-like declaration within the Jetleaf reflection system.
ConstructorDeclaration
Represents a constructor of a Dart class, including its parameters, modifiers (const, factory), and the ability to create new instances.
Declaration
A named, typed declaration representing a concrete program element.
EntityDeclaration
A uniquely identifiable declaration representing a runtime entity.
EnumDeclaration
Represents a reflected Dart enum type, providing access to its enum entry names, metadata, and declared members (fields, methods).
EnumFieldDeclaration
Abstract base class representing a field (value) within an enum declaration.
FieldDeclaration
Represents a field (variable) declared within a Dart class, extension, enum, or mixin.
FunctionDeclaration
Specialized LinkDeclaration for function type references.
GenerativeAsset
Base class representing a resource asset with a no-args constructor.
GenerativePackage
Base class representing a package resource with a no-args constructor.
LibraryDeclaration
Represents a Dart library declaration within Jetleaf’s reflection and generation system.
LinkDeclaration
Abstract base class for type references in reflection systems.
MaterialAsset
A concrete, immutable implementation of the Asset interface.
MaterialPackage
A concrete, immutable implementation of the Package interface.
MemberDeclaration
A source-level declaration that is owned by a class.
MethodDeclaration
Represents a method declaration in a Dart class, extension, mixin, or top-level scope.
MixinDeclaration
Represents a reflected Dart mixin declaration, providing access to its members, type constraints, and metadata.
Package
Represents a Dart package within the Jetleaf reflection and code generation system.
ParameterDeclaration
Represents a parameter in a constructor or method, with metadata about its name, type, position (named or positional), and default value.
RecordDeclaration
Represents a reflected Dart record type.
RecordFieldDeclaration
A representation of an individual field within a Dart record type in the Jetleaf reflection system.
SourceDeclaration
A declaration that originates directly from source-level Dart code.
StandardAnnotationDeclaration
A standard implementation of AnnotationDeclaration that provides reflection metadata about an annotation applied to a declaration.
StandardAnnotationFieldDeclaration
Enhanced annotation field metadata
StandardClassDeclaration
A standard implementation of ClassDeclaration that provides runtime metadata and reflection capabilities for Dart classes.
StandardClosureDeclaration
A concrete, internal implementation of ClosureDeclaration.
StandardConstructorDeclaration
A standard implementation of ConstructorDeclaration that provides metadata and instantiation logic for class constructors.
StandardDeclaration
StandardEntityDeclaration
Concrete implementation of EntityDeclaration providing standard reflection metadata.
StandardEnumDeclaration
A standard implementation of EnumDeclaration that provides reflection metadata about an enum declaration in a Dart program.
StandardEnumFieldDeclaration
Concrete implementation of EnumFieldDeclaration representing an enum value.
StandardFieldDeclaration
A standard implementation of FieldDeclaration that provides metadata and runtime access to class fields in a reflective system.
StandardFunctionDeclaration
Standard implementation of FunctionDeclaration for representing function type references with full type information.
StandardLibraryDeclaration
A standard implementation of LibraryDeclaration that provides access to all top-level declarations in a Dart library.
StandardLinkDeclaration
A standard implementation of LinkDeclaration for representing links to other types.
StandardMethodDeclaration
A standard implementation of MethodDeclaration representing a method, constructor, getter, or setter in a Dart class or library.
StandardMixinDeclaration
A standard implementation of MixinDeclaration that provides reflection metadata about a Dart mixin declaration.
StandardParameterDeclaration
A standard implementation of ParameterDeclaration used to represent metadata about a parameter in a Dart function, method, or constructor.
StandardRecordDeclaration
A standard implementation of RecordDeclaration used to represent Dart Record types, including their positional and named fields, type arguments, annotations, and parent library metadata.
StandardRecordFieldDeclaration
Represents an individual field within a Dart record type, either positional or named.
StandardSourceDeclaration
Concrete implementation of SourceDeclaration representing source-level declarations.

Enums

TypeKind
Enumerates the different kinds of Dart types recognized by Jetleaf’s reflection and type resolution system.

Constants

DEFAULT_ENCODING → const Utf8Codec
The default character encoding used for JSON serialization and deserialization.