ValueQueryNode

interface ValueQueryNode<T : Any> : QueryNode

This interface should be implemented by QueryNode that holds an arbitrary value.

Inheritors

Properties

Link copied to clipboard

get Children nodes

Link copied to clipboard
abstract val isLeaf: Boolean

verify if a node is a Leaf node

Link copied to clipboard
abstract val parent: QueryNode?
Link copied to clipboard
abstract val tagMap: Map<String, Any>

Returns a map containing all tags attached to this query node.

Link copied to clipboard
abstract var value: T?

Functions

Link copied to clipboard
abstract fun add(children: List<QueryNode>)
abstract fun add(child: QueryNode)
Link copied to clipboard
abstract fun cloneTree(): QueryNode

Recursive clone the QueryNode tree The tags are not copied to the new tree when you call the cloneTree() method

Link copied to clipboard
abstract fun containsTag(tagName: String): Boolean

verify if a node contains a tag

Link copied to clipboard
abstract fun getTag(tagName: String): Any?

Returns object stored under that tag name

Link copied to clipboard
abstract fun removeChildren(childNode: QueryNode)

Remove a child node

Link copied to clipboard
abstract fun removeFromParent()

Removes this query node from its parent.

Link copied to clipboard
abstract fun set(children: List<QueryNode>)
Link copied to clipboard
abstract fun setTag(tagName: String, value: Any)

Associate the specified value with the specified tagName. If the tagName already exists, the old value is replaced. The tagName and value cannot be null. tagName will be converted to lowercase.

Link copied to clipboard
abstract fun toQueryString(escapeSyntaxParser: EscapeQuerySyntax): CharSequence

convert to a query string understood by the query parser

Link copied to clipboard
abstract fun unsetTag(tagName: String)

Unset a tag. tagName will be converted to lowercase.