SelectorBuilder

sealed abstract class SelectorBuilder[M, S]

Selector builder exposes a DSL to build selectors in a type safe manner.

Companion:
object
class Object
trait Matchable
class Any
class NamesBuilder[M, S]
object RootBuilder.type

Value members

Abstract methods

Compiles the current builder into its final selector representation.

Compiles the current builder into its final selector representation.

Concrete methods

def field(f: String): NamesBuilder[Optional, Strict]

Creates a field selector, that will select only the element at the given field in the currently selected object. The resulting selector is strict and will fail if the element is not an object.

Creates a field selector, that will select only the element at the given field in the currently selected object. The resulting selector is strict and will fail if the element is not an object.

def fields(f: String, fs: String*): NamesBuilder[Optional, Strict]

Creates a fields selector, that will select only the element at the given fields in the currently selected object. The resulting selector is strict and will fail if the element is not an object.

Creates a fields selector, that will select only the element at the given fields in the currently selected object. The resulting selector is strict and will fail if the element is not an object.

Creates an index selector, that will select only the element at the given index in the currently selected array. The resulting selector is strict and will fail if the element is not an array.

Creates an index selector, that will select only the element at the given index in the currently selected array. The resulting selector is strict and will fail if the element is not an array.

def indices(i: Int, is: Int*): IndicesBuilder[Strict]

Creates an indices selector, that will select only the elements at the given indices in the currently selected array. The resulting selector is strict and will fail if the element is not an array.

Creates an indices selector, that will select only the elements at the given indices in the currently selected array. The resulting selector is strict and will fail if the element is not an array.

Creates an iterator selector, that will enumerate all elements in the currently selected array or object. The resulting selector is strict and will fail if the element is not an array or an object.

Creates an iterator selector, that will enumerate all elements in the currently selected array or object. The resulting selector is strict and will fail if the element is not an array or an object.

def range(start: Int, end: Int): IndicesBuilder[Strict]

Creates a range selector, that will select only the elements between the given indices in the currently selected array. The resulting selector is strict and will fail if the element is not an array.

Creates a range selector, that will select only the elements between the given indices in the currently selected array. The resulting selector is strict and will fail if the element is not an array.