Grammar class
Grammar patterns for Bayeux protocol validation
Constructors
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 Properties
- channelName → RegExp
-
Channel name pattern - matches valid channel names
Format: /segment1/segment2/segment3 where segments contain alphanumeric, -, _, !, ~, (, ), $, @
final
- channelPattern → RegExp
-
Channel pattern - matches channel patterns with wildcards
Format: /segment1/segment2/* or /segment1/** or /segment1/*/segment2
final
- error → RegExp
-
Error pattern - matches Bayeux error codes
Format: 3-digit code followed by optional description
final
- version → RegExp
-
Version pattern - matches semantic versioning format
Format: major.minor.patch with optional pre-release and build metadata
final
Static Methods
-
channelMatches(
String channel, String pattern) → bool - Check if a channel matches a pattern
-
isValidChannelName(
String channel) → bool - Check if a string is a valid channel name
-
isValidChannelPattern(
String pattern) → bool - Check if a string is a valid channel pattern (with wildcards)
-
isValidError(
String errorCode) → bool - Check if a string is a valid error code
-
isValidVersion(
String versionString) → bool - Check if a string is a valid version