A representation of an individual field within a Dart record type in the JetLeaf reflection system.
This abstraction allows inspecting both named and positional fields of a record. Provides metadata such as name, position, type, and whether it's named.
Example
final field = MyReflectedRecordField(...);
print(field.getIsNamed()); // true
- Inheritance
-
- Object
- PermissionManager
- RecordField
Constructors
- RecordField.linked(RecordFieldDeclaration declaration, RecordDeclaration record, ProtectionDomain pd)
-
Links a RecordFieldDeclaration and parent RecordDeclaration to create
a new
RecordFieldinstance within the given ProtectionDomain.factory
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
-
checkAccess(
String operation, DomainPermission permission) → void -
Verifies access permissions before performing sensitive operations.
inherited
-
getAuthor(
) → Author? -
Retrieves the Author annotation applied to this element, if present.
inherited
-
getDeclaration(
) → LinkDeclaration - Retrieves the meta-level declaration for this field.
-
getFieldDeclaration(
) → RecordFieldDeclaration - Returns the field declaration object associated with this record field.
-
getName(
) → String - Returns the name of the field.
-
getParent(
) → RecordDeclaration - Returns the parent record to which this field belongs.
-
getProtectionDomain(
) → ProtectionDomain -
Gets the protection domain governing access to this element.
inherited
-
getReturnClass(
) → Class< Object> - Gets the declared type of the record field as a Class object.
-
getReturnType(
) → Type - Gets the runtime type of the record field as a Type.
-
getVersion(
) → Version -
Retrieves the version metadata associated with this declaration, if any.
inherited
-
isPositional(
) → bool - Indicates whether this field is positional within the record.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
position(
) → int - Returns the zero-based index for positional fields.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited