Class

quasar.blueeyes.json

JValueOps

Related Doc: package json

Permalink

implicit class JValueOps extends AnyRef

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. JValueOps
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new JValueOps(self: JValue)

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def ++(other: JValue): JValue

    Permalink

    Concatenate with another JSON.

    Concatenate with another JSON. This is a concatenation monoid: (JValue, ++, JUndefined)

  4. def -->[A <: JValue](clazz: Class[A]): A

    Permalink

    Returns the element as a JValue of the specified class.

  5. def -->?[A <: JValue](clazz: Class[A]): Option[A]

    Permalink

    Returns the element as an option of a JValue of the specified class.

  6. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  7. def \(nameToFind: String): JValue

    Permalink

    XPath-like expression to query JSON fields by name.

    XPath-like expression to query JSON fields by name. Matches only fields on next level.

  8. def \?(nameToFind: String): Option[JValue]

    Permalink
  9. def \\(nameToFind: String): JValue

    Permalink

    XPath-like expression to query JSON fields by name.

    XPath-like expression to query JSON fields by name. Returns all matching fields.

  10. def apply(i: Int): JValue

    Permalink

    Return nth element from JSON Array.

  11. def apply(node: JPathNode): JValue

    Permalink
  12. def apply(path: JPath): JValue

    Permalink
  13. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  14. def breadthFirst: List[JValue]

    Permalink

    Does a breadth-first traversal of all descendant JValues, beginning with this one.

  15. def children: Iterable[JValue]

    Permalink

    Return direct child elements.

  16. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  17. def delete(path: JPath): Option[JValue]

    Permalink
  18. def diff(other: JValue): Diff

    Permalink
  19. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  20. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  21. def filter(p: (JValue) ⇒ Boolean): List[JValue]

    Permalink

    Return a List of all elements which matches the given predicate.

  22. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  23. def find(p: (JValue) ⇒ Boolean): Option[JValue]

    Permalink

    Return the first element from JSON which matches the given predicate.

  24. def flatten: List[JValue]

    Permalink
  25. def flattenWithPath: List[(JPath, JValue)]

    Permalink

    Flattens the JValue down to a list of path to simple JValue primitive.

  26. def foldDown[A](z: A)(f: (A, JValue) ⇒ A): A

    Permalink

    Return a combined value by folding over JSON by applying a function f for each element.

    Return a combined value by folding over JSON by applying a function f for each element. The initial value is z.

  27. def foldDownWithPath[A](z: A)(f: (A, JPath, JValue) ⇒ A): A

    Permalink

    Return a combined value by folding over JSON by applying a function f for each element, passing along the path to the elements.

    Return a combined value by folding over JSON by applying a function f for each element, passing along the path to the elements. The initial value is z.

  28. def foldUp[A](z: A)(f: (A, JValue) ⇒ A): A

    Permalink

    Return a combined value by folding over JSON by applying a function f for each element.

    Return a combined value by folding over JSON by applying a function f for each element. The initial value is z.

  29. def foldUpWithPath[A](z: A)(f: (A, JPath, JValue) ⇒ A): A

    Permalink

    Return a combined value by folding over JSON by applying a function f for each element, passing along the path to the elements.

    Return a combined value by folding over JSON by applying a function f for each element, passing along the path to the elements. The initial value is z.

  30. def get(path: JPath): JValue

    Permalink

    Gets the specified value located at the terminal of the specified path.

  31. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  32. def getOrElse(that: ⇒ JValue): JValue

    Permalink
  33. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  34. def insert(path: JPath, value: JValue): Validation[Throwable, JValue]

    Permalink
  35. def insertAll(other: JValue): ValidationNel[Throwable, JValue]

    Permalink

    A safe merge function that ensures that values are not overwritten.

  36. def isDefined: Boolean

    Permalink
  37. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  38. def mapDown(f: (JValue) ⇒ JValue): JValue

    Permalink

    Return a new JValue resulting from applying the given function f to each element, moving from the top-down.

    Return a new JValue resulting from applying the given function f to each element, moving from the top-down.

  39. def mapDownWithPath(f: (JPath, JValue) ⇒ JValue): JValue

    Permalink

    Return a new JValue resulting from applying the given function f to each element and its path, moving from the top-down.

    Return a new JValue resulting from applying the given function f to each element and its path, moving from the top-down.

  40. def mapUp(f: (JValue) ⇒ JValue): JValue

    Permalink

    Return a new JValue resulting from applying the given function f to each element, moving from the bottom-up.

    Return a new JValue resulting from applying the given function f to each element, moving from the bottom-up.

  41. def mapUpWithPath(f: (JPath, JValue) ⇒ JValue): JValue

    Permalink

    Return a new JValue resulting from applying the given function f to each element and its path, moving from the bottom-up.

    Return a new JValue resulting from applying the given function f to each element and its path, moving from the bottom-up.

  42. def merge(other: JValue): JValue

    Permalink
  43. def minimize: Option[JValue]

    Permalink

    Remove instances of Nothing from the data structure.

  44. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  45. def normalize: JValue

    Permalink
  46. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  47. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  48. def remove(p: (JValue) ⇒ Boolean): JValue

    Permalink

    Return a JSON where all elements matching the given predicate are removed.

  49. def renderCanonical: String

    Permalink
  50. def renderCompact: String

    Permalink
  51. def renderPretty: String

    Permalink
  52. def replace(target: JPath, replacement: JValue): JValue

    Permalink

    A shorthand for the other replacement in the case that the replacement does not depend on the value being replaced.

  53. def replace(target: JPath, replacer: (JValue) ⇒ JValue): JValue

    Permalink

    Replaces the matched path values with the result of calling the replacer function on the matches.

    Replaces the matched path values with the result of calling the replacer function on the matches. If the path has no values, the method has no effect -- i.e. it is not an error to specify paths which do not exist.

  54. def set(path: JPath, value: JValue): JValue

    Permalink
  55. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  56. def toOption: Option[JValue]

    Permalink
  57. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  58. def to_s: String

    Permalink
  59. def transform(f: PartialFunction[JValue, JValue]): JValue

    Permalink

    Return a new JValue resulting from applying the given partial function f to each element in JSON.

    Return a new JValue resulting from applying the given partial function f to each element in JSON.

  60. def typeIndex: Int

    Permalink
  61. def unsafeInsert(rootPath: JPath, rootValue: JValue): JValue

    Permalink
  62. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  63. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  64. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped