TopicPattern class abstract final

Canonical wildcard rules for local topics.

* matches exactly one path token. > matches one or more trailing path tokens and must be the last token. Wildcards are only allowed as whole path tokens; the type token is always concrete.

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

isPattern(Topic topic) → bool
Whether topic contains wildcard characters in its paths.
matches(Topic pattern, Topic topic) → bool
Whether pattern matches the concrete topic.
specificity(Topic pattern) → int
The number of literal tokens in pattern; more specific patterns win.
validate(Topic topic) → void
Validates a pattern topic; a mixed token such as a* is rejected.

Constants

single → const String
tail → const String