SemanticRefGenerator class

Semantic fingerprint system for reliable element referencing. Generates human-readable ref IDs in the format {role}:{content}{index}

Constructors

SemanticRefGenerator()

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

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

Static Methods

cacheElement(String refId, Element element, Map<String, dynamic> bounds) → void
Cache element data for performance
clearCache() → void
Clear the element cache
generateRefId(Element element, Map<String, int> refCounts) String
Generate semantic ref ID for an element
getCachedElement(String refId) Map<String, dynamic>?
Get cached element data
isLegacyRef(String ref) bool
Backward compatibility: check if ref looks like old format
parseLegacyRef(String ref) Map<String, dynamic>?
Convert legacy ref to search parameters for backward compatibility