LazyPattern class
Lazily compiled regex patterns.
Regex compilation is expensive. This class defers compilation until the pattern is actually used, avoiding unnecessary work for rules that get skipped by early filtering.
Constructors
- LazyPattern(String _pattern)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isCompiled → bool
-
Check if already compiled.
no setter
- regex → RegExp
-
Get the compiled regex (compiles on first access).
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
allMatches(
String input) → Iterable< RegExpMatch> - Find all matches (compiles lazily).
-
hasMatch(
String input) → bool - Check if pattern matches (compiles lazily).
-
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