Node
@ExperimentalAppSearchApi
public interface Node
AndNode |
|
ComparatorNode |
|
FunctionNode |
|
NegationNode |
|
OrNode |
|
PropertyRestrictNode |
|
TextNode |
|
GetSearchStringParameterNode |
|
HasPropertyNode |
|
PropertyDefinedNode |
|
SearchNode |
|
SemanticSearchNode |
|
This is the basic Abstract Syntax Tree (AST) class. All other classes extend from this class depending on the specific node.
This API may change in response to feedback and additional changes.
Summary
Public methods
getChildren
default @NonNull List<Node> getChildren()
Get a list of the node's child Node
s.
By default this method will return an empty list representing that the node has no child nodes.
If a node type extends this interface and has child nodes, then that class should override this implementation and return a list of nodes of size equal to the number of child nodes that node has.