ExpressionBuilder
QuantConnect.Util.ExpressionBuilder
Bases: Object
Provides methods for constructing expressions at runtime
make_property_or_field_selector
make_property_or_field_selector: (
_ExpressionBuilder_MakePropertyOrFieldSelector
)
make_binary_comparison_lambda
make_binary_comparison_lambda: (
_ExpressionBuilder_MakeBinaryComparisonLambda
)
as_enumerable
as_enumerable(expression: Any) -> Sequence[Expression]
Converts the specified expression into an enumerable of expressions by walking the expression tree
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
expression
|
Any
|
The expression to enumerate |
required |
Returns:
| Type | Description |
|---|---|
Sequence[Expression]
|
An enumerable containing all expressions in the input expression. |
is_binary_comparison
is_binary_comparison(type: Any) -> bool
Determines whether or not the specified type is a binary comparison.