whether the Predicate should be displayed, or not
Adds new child predicate of type EditableClausePredicate
the operator of the child clause predicate
whether the new predicate should be initially visible
Adds new child predicate of type EditableElementaryPredicate
whether the new predicate should be initially visible
Generates an id for the new predicate, adds it into the map and updates the query
If you want to add an editable predicate, use one of the other methods, so that this predicate can react to changes.
the new predicate
an Array containing text segments representing the content of this predicate. The default implementation returns an empty array.
an object containing the necessary information for the reconstruction of the entire predicate tree in serializable form.
Returns undefined
if the predicate tree rooted at this node is incomplete and would evaluate into an empty filter.
Notify the parent Predicate
that this Predicate
updated its Query
Sets the predicates state to visible
Sets this predicate and all its sub-predicates to visible.
Shows the predicates with the given ids. Skips ids that don't exist.
the ids of the predicates that should be shown.
Updates the value of the [_query]{@link ClausePredicate#_query} attribute.
See [combineQueries()]{@link Query#combineQueries} for more information.
Updates the Query
and notifies the parent.
Combines the text segments of the predicates with the given operator and wraps the individual predicates in brackets optionaly
sources of text segments that are to be combined with a boolean operator
boolean operator used to combine the individual predicate text segments
whether the individual predicate text segments should be wrapped in braces or not (if only one predicate is provided it is never wrapped)
Generated using TypeDoc
A complex, editable
Predicate
. Represents an inner node in the predicate tree, that can process changes ofQuery
objects held by its child nodes. It can notify the parent tree node about changes to the heldQuery
.