@ExperimentalAppSearchApi
public interface Node

Known direct subclasses
AndNode

Node that represents logical AND of nodes.

ComparatorNode

Node that represents a numeric search expression between a property and a numeric value.

FunctionNode

Node that represents a function.

NegationNode

Node that stores a child node to be logically negated with a negative sign ("-") or 'NOT'.

OrNode

Node that represents logical OR of nodes.

PropertyRestrictNode

Node that represents a property restrict.

TextNode

Node that stores text.

Known indirect subclasses
GetSearchStringParameterNode

FunctionNode that represents the getSearchStringParameter function.

HasPropertyNode

FunctionNode representing the `hasProperty` query function.

PropertyDefinedNode

FunctionNode representing the `propertyDefined` query function.


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

default @NonNull List<Node>

Get a list of the node's child Nodes.

Public methods

getChildren

Added in 1.1.0-alpha06
default @NonNull List<NodegetChildren()

Get a list of the node's child Nodes.

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.

Returns
@NonNull List<Node>

An empty list of Node representing the child nodes.