SelectorBuilder

fs2.data.json.selector.SelectorBuilder
See theSelectorBuilder companion object
sealed abstract class SelectorBuilder[M, S]

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

Attributes

Companion
object
Source
dsl.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class IndicesBuilder[S]
class IteratorBuilder[S]
class NamesBuilder[M, S]
object RootBuilder.type

Members list

Value members

Abstract methods

Compiles the current builder into its final selector representation.

Compiles the current builder into its final selector representation.

Attributes

Source
dsl.scala

Concrete methods

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.

Attributes

Source
dsl.scala

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.

Attributes

Source
dsl.scala

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.

Attributes

Source
dsl.scala
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.

Attributes

Source
dsl.scala

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.

Attributes

Source
dsl.scala
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.

Attributes

Source
dsl.scala