FilterPath

intervalidus.json.FilterPath
See theFilterPath companion object
trait FilterPath

Specifies the path to subdocuments over which we want to fold. Similar to uPickle's TraceVisitor.HasPath, but optimized for frequent evaluation/comparison.

Attributes

Companion
object
Source
FilterPath.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

def path: List[PathComponent]

Attributes

Source
FilterPath.scala

Concrete methods

def all(s: String): FilterPath

Filter for all array elements referenced by an object attribute.

Filter for all array elements referenced by an object attribute.

Value parameters

s

object attribute name for the array.

Attributes

Returns

filter path to the array elements.

Source
FilterPath.scala
def apply(s: String): FilterPath

Filter for an object attribute.

Filter for an object attribute.

Value parameters

s

attribute name.

Attributes

Returns

filter path to the object attribute.

Source
FilterPath.scala
def apply(i: Int): FilterPath

Filter for an array element.

Filter for an array element.

Value parameters

i

index of the array element.

Attributes

Returns

filter path to the array element.

Source
FilterPath.scala
def comparePathTo[T](that: FilterPath)(whenPrefix: => T, whenMatches: => T, otherwise: => T): T

Attributes

Source
FilterPath.scala
def slice(s: String, from: Int = ..., until: Int = ...): FilterPath

Filter for a slice of array elements referenced by an object attribute.

Filter for a slice of array elements referenced by an object attribute.

Value parameters

from

the lowest index to include from the array.

s

object attribute name for the array.

until

the lowest index to EXCLUDE from the array.

Attributes

Returns

filter path to the slice of the array elements.

Source
FilterPath.scala
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any
Source
FilterPath.scala