AlternativeLiterals class final

Represents a list of alternative literal strings (e.g., "en" / "de").

Implemented types

Constructors

AlternativeLiterals(Iterable<String> literals, {bool caseSensitive = false, String? description})

Properties

caseSensitive bool
Whether matching is case-sensitive.
final
description String?
An optional human-readable description of this element.
final
hashCode int
The hash code for this object.
no setterinherited
jagged bool
final
minLength int
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
values Set<String>
The original (unmodified) values, used for display and for case-sensitive matching.
final

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 source string matching this element.
override
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited