AndExpression
Class: AndExpression
Defined in: packages/ql/src/query.ts:1185
Logical AND expression — evaluates to true only if all children are true
Uses short-circuit evaluation: returns false as soon as any child fails.
An empty AND (no children) evaluates to true.
Extends
LogicalExpression<"AND">
Constructors
Constructor
new AndExpression(
children):AndExpression
Defined in: packages/ql/src/query.ts:1189
Parameters
children
Expression<string>[]
Expressions to use for AND
Returns
AndExpression
Overrides
Properties
children
children:
Expression<string>[] =[]
Defined in: packages/ql/src/query.ts:1150
Child expressions combined by this logical operator
Inherited from
operator
operator:
"AND"
Defined in: packages/ql/src/query.ts:866
Inherited from
Methods
eval()
eval(
target):boolean
Defined in: packages/ql/src/query.ts:1196
Parameters
target
any
Returns
boolean
Overrides
isDynamic()
isDynamic():
boolean
Defined in: packages/ql/src/query.ts:1174
Returns
boolean
Inherited from
toString()
toString(
depth?):string
Defined in: packages/ql/src/query.ts:1164
Parameters
depth?
number = 0
Returns
string