Precedence class
Used to order the precedence of sql expressions so that we can avoid unnecessary parens when generating sql statements.
- Implemented types
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
compareTo(
Precedence other) → int -
Compares this object to another object.
override
-
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 <(
Precedence other) → bool -
Returns true if this Precedence is lower than
other
. -
operator <=(
Precedence other) → bool -
Returns true if this Precedence is lower or equal to
other
. -
operator ==(
Object other) → bool -
The equality operator.
override
-
operator >(
Precedence other) → bool -
Returns true if this Precedence is higher than
other
. -
operator >=(
Precedence other) → bool -
Returns true if this Precedence is higher or equal to
other
.
Constants
- and → const Precedence
-
Precedence for the
AND
operator in sql - bitwise → const Precedence
- Precedence for bitwise operators in sql
- comparison → const Precedence
- Precedence for the <, <=, >, >= operators in sql
- comparisonEq → const Precedence
- Precedence for most of the comparisons operators in sql, including equality, is (not) checks, in, like, glob, match, regexp.
- mulDivide → const Precedence
- Precedence for the *, / and % operators in sql
- or → const Precedence
-
Precedence for the
OR
operator in sql - plusMinus → const Precedence
- Precedence for the (binary) plus and minus operators in sql
- postfix → const Precedence
- Precedence for postfix operators (like collate) in sql
- primary → const Precedence
- Highest precedence in sql, used for variables and literals.
- stringConcatenation → const Precedence
- Precedence for the || operator in sql
- unary → const Precedence
- Precedence for unary operators in sql
- unknown → const Precedence
- Precedence is unknown, assume lowest. This can be used for a CustomExpression to always put parens around it.