Repetition class final
Represents variable repetition of an element (e.g., *foo or 1*3foo).
- Implemented types
Constructors
- Repetition(Element element, {int min = 0, int? max, String? description})
Properties
Methods
-
accept(
ElementVisitor visitor) → void -
Accepts an ElementVisitor for traversing the grammar tree.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
parse(
String source) → ParseResult -
Attempts to parse the
sourcestring matching this element.override -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited