Interface IQueryNode
Interface representing a query node.
Namespace: UnityEditor.Search
Syntax
public interface IQueryNode
Properties
children
The node's children. Can be null.
Declaration
List<IQueryNode> children { get; }
Property Value
Type | Description |
---|---|
List<IQueryNode> |
identifier
A string representing this node and its children.
Declaration
string identifier { get; }
Property Value
Type | Description |
---|---|
String |
leaf
True if this node is a leaf. A leaf doesn't have any child.
Declaration
bool leaf { get; }
Property Value
Type | Description |
---|---|
Boolean |
parent
Parent of this node. Null if this node is the root.
Declaration
IQueryNode parent { get; set; }
Property Value
Type | Description |
---|---|
IQueryNode |
skipped
True if this node is skipped during evaluation. A node can be skipped if the QueryEngine was configured to skip unsupported nodes instead of generating errors.
Declaration
bool skipped { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
token
The token used to build this node.
Declaration
QueryToken token { get; set; }
Property Value
Type | Description |
---|---|
QueryToken |
type
The node's type.
Declaration
QueryNodeType type { get; }
Property Value
Type | Description |
---|---|
QueryNodeType |
Methods
QueryHashCode()
Returns a hashcode for this node. Multiple nodes can have the same hashcode if they have the same identifier.
Declaration
int QueryHashCode()
Returns
Type | Description |
---|---|
Int32 | An integer representing the hashcode. |