BlockEntry class

Constructors

BlockEntry(BlockEntryType entryType, Searcher searcher, {Searcher? searcherEnd, bool optional = false})

Properties

entryType BlockEntryType
final
hashCode int
The hash code for this object.
no setterinherited
optional bool
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
searcher Searcher
final
searcherEnd Searcher?
Only needed for a "start stop sequence":
final

Methods

countMatchingLines(int ixLine, int step, int ixStop) int
Count the matching lines of the instance. ixLine is the index of the first line to inspect. step: +1 or -1: signals forward or backward searching. ixStop is the the first "forbidden" index: reaching this index the search stops. Returns the number of lines belonging to the sequence.
handleStartEndSequenceBackward(int ixLine, int ixStop) int
Handles a start stop sequence if the first (or last) line is matching. ixLine is the index of the first line to inspect. step: +1 or -1: signals forward or backward searching. ixStop is the the first "forbidden" index: reaching this index the search stops. Returns the number of lines belonging to the sequence.
handleStartEndSequenceForward(int ixLine, int ixStop) int
Handles a start stop sequence if the first (or last) line is matching. ixLine is the index of the first line to inspect. step: +1 or -1: signals forward or backward searching. ixStop is the the first "forbidden" index: reaching this index the search stops. Returns the number of lines belonging to the sequence.
match(String line, int startColumn, {bool isFirstLine = true}) bool
Tests whether the block entry matches the line starting with startColumn. true: the line matches.
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