LanguageVersion class abstract
A language version.
A language version is represented by two non-negative integers, the major and minor version numbers.
If errors during parsing are handled using an onError
handler,
then an invalid language version may be represented by an
InvalidLanguageVersion object.
- Implemented types
- Implementers
- Available extensions
Constructors
- LanguageVersion.new(int major, int minor)
-
Constructs a LanguageVersion with the specified
major
andminor
version numbers.factory
Properties
Methods
-
compareTo(
LanguageVersion other) → int -
Compares language versions.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of the language version.
override
Operators
-
operator <(
LanguageVersion other) → bool -
Available on LanguageVersion, provided by the LanguageVersionRelationalOperators extension
Whether this language version is less thanother
. -
operator <=(
LanguageVersion other) → bool -
Available on LanguageVersion, provided by the LanguageVersionRelationalOperators extension
Whether this language version is less than or equal toother
. -
operator ==(
Object other) → bool -
Valid language versions with the same major and minor values are
equal.
override
-
operator >(
LanguageVersion other) → bool -
Available on LanguageVersion, provided by the LanguageVersionRelationalOperators extension
Whether this language version is greater thanother
. -
operator >=(
LanguageVersion other) → bool -
Available on LanguageVersion, provided by the LanguageVersionRelationalOperators extension
Whether this language version is greater than or equal toother
.
Static Methods
-
parse(
String source, {void onError(Object error)?}) → LanguageVersion - Parses a language version string.