API reference
API reference
Select your platform
No SDKs available
No versions available

CachedQueryNode Class

AST node for CachedQuery expressions.
This sealed class represents the supported query operations for CachedQuery. Only has(), and, and or operations are supported. Filters and other Query operations are intentionally not available.

Signature

sealed class CachedQueryNode

Functions

and ( other )
Combines this node with another using logical AND.
Signature
infix fun and(other: CachedQueryNode): CachedQueryNode
Parameters
or ( other )
Combines this node with another using logical OR.
Signature
infix fun or(other: CachedQueryNode): CachedQueryNode
Parameters

Inner Classes

Has Class

Modifiers: final
Represents a has(componentId, ...) check.

Signature

data class Has(val componentIds: IntArray) : CachedQueryNode

Constructors

Has ( componentIds )
Signature
constructor(componentIds: IntArray)
Parameters
componentIds: IntArray
Returns
CachedQueryNode.Has

Properties

componentIds : IntArray
[Get]
Signature
val componentIds: IntArray

Functions

and ( other )
Combines this node with another using logical AND.
Signature
infix fun and(other: CachedQueryNode): CachedQueryNode
Parameters
equals ( other )
Signature
open operator override fun equals(other: Any?): Boolean
Parameters
other: Any?
Returns
Boolean
hashCode ()
Signature
open override fun hashCode(): Int
Returns
Int
or ( other )
Combines this node with another using logical OR.
Signature
infix fun or(other: CachedQueryNode): CachedQueryNode
Parameters

And Class

Modifiers: final
Represents a logical AND of two query nodes.

Signature

data class And(val left: CachedQueryNode, val right: CachedQueryNode) : CachedQueryNode

Constructors

And ( left , right )
Signature
constructor(left: CachedQueryNode, right: CachedQueryNode)
Parameters
Returns
CachedQueryNode.And

Properties

[Get]
Signature
val left: CachedQueryNode
[Get]
Signature
val right: CachedQueryNode

Functions

and ( other )
Combines this node with another using logical AND.
Signature
infix fun and(other: CachedQueryNode): CachedQueryNode
Parameters
or ( other )
Combines this node with another using logical OR.
Signature
infix fun or(other: CachedQueryNode): CachedQueryNode
Parameters

Or Class

Modifiers: final
Represents a logical OR of two query nodes.

Signature

data class Or(val left: CachedQueryNode, val right: CachedQueryNode) : CachedQueryNode

Constructors

Or ( left , right )
Signature
constructor(left: CachedQueryNode, right: CachedQueryNode)
Parameters
Returns
CachedQueryNode.Or

Properties

[Get]
Signature
val left: CachedQueryNode
[Get]
Signature
val right: CachedQueryNode

Functions

and ( other )
Combines this node with another using logical AND.
Signature
infix fun and(other: CachedQueryNode): CachedQueryNode
Parameters
or ( other )
Combines this node with another using logical OR.
Signature
infix fun or(other: CachedQueryNode): CachedQueryNode
Parameters
Did you find this page helpful?