Uses of Class
jsonvalues.JsPath
Packages that use JsPath
-
Uses of JsPath in jsonvalues
Methods in jsonvalues that return JsPathModifier and TypeMethodDescriptionCreates a new JsPath appending the given path to this path.JsPath.dec()
Returns a new path decrementing the last index by one, throwing an UserError if the last Position is not an indexstatic JsPath
JsPath.empty()
Returns the singleton empty path.static JsPath
JsPath.fromIndex
(int i) returns a path from an indexstatic JsPath
returns a path from a keyJsPath.inc()
Returns a new path incrementing the last index by one, throwing an UserError if the last Position is not an indexJsPath.index
(int i) Returns a new path appending an index with the given value to the back of this path.JsPath.init()
Returns a new path without the last Position of this path.creates a new JsPath appending the key tothis
JsPath.JsPath.mapKeys
(UnaryOperator<String> map) Creates a new JsPath applying the given map function to every key of this path.JsPair.path()
static JsPath
Creates a new JsPath prepending the given path to this path.JsPath.tail()
Returns a JsPath without the head of this JsPathMethods in jsonvalues with parameters of type JsPathModifier and TypeMethodDescriptionCreates a new JsPath appending the given path to this path.lens that focus on the json array located at a path in an arrayoptional that focus on the array located at a path in an arraylens that focus on a json object located at a path in an object.optional that focus on the array located at a path in an objectfun.optic.Lens<JsArray,
byte[]> lens that focus on an array of bytes located at a path in an arrayfun.optic.Lens<JsObj,
byte[]> lens that focus on an array of bytes located at a path in an object.fun.optic.Option<JsObj,
byte[]> optional that focus on the array of bytes located at a path in an objectlens that focus on the boolean located at a path in an arrayoptional that focus on the boolean located at a path in an arraylens that focus on a boolean located at a path in an object.optional that focus on the boolean located at a path in an objectint
Compares this path with another given as a parameter by comparing in order each of their positions, one by one, until a result different from zero is returned or all the positions of any path are consumed.boolean
returns true if this path contains the given pathdefault boolean
Json.containsPath
(JsPath path) Returns true if an element exists in this json at the given path.fun.optic.Lens<JsArray,
BigDecimal> JsOptics.JsArrayLenses.decimalNum
(JsPath path) lens that focus on the decimal number located at a path in an arrayfun.optic.Option<JsArray,
BigDecimal> JsOptics.JsArrayOptionals.decimalNum
(JsPath path) optional that focus on the decimal number located at a path in an arrayfun.optic.Lens<JsObj,
BigDecimal> JsOptics.JsObjLenses.decimalNum
(JsPath path) lens that focus on a decimal number located at a path in an object.fun.optic.Option<JsObj,
BigDecimal> JsOptics.JsObjOptional.decimalNum
(JsPath path) optional that focus on the decimal number located at a path in an objectRemoves the element in this json located at the given path, if it exists, returning the same this instance otherwiselens that focus on the double number located at a path in an arrayoptional that focus on the double number located at a path in an arraylens that focus on a double number located at a path in an object.optional that focus on the double number located at a path in an objectboolean
returns true if this path ends with the given path.Returns the element located at the given path orJsNothing
if it doesn't exist.default JsArray
Returns the array located at the given path or null if it doesn't exist or it's not an array.default JsArray
Returns the array located at the given path or the default value provided if it doesn't exist or it's not an array.default BigDecimal
Returns the number located at the given path as a big decimal or null if it doesn't exist or it's not a decimal number.default BigDecimal
Json.getBigDec
(JsPath path, Supplier<BigDecimal> orElse) Returns the number located at the given path as a big decimal or the default value if it doesn't exist or it's not a decimal number.default BigInteger
Returns the number located at the given path as a big integer or null if it doesn't exist or it's not an integral number.default BigInteger
Json.getBigInt
(JsPath path, Supplier<BigInteger> orElse) Returns the number located at the given path as a big integer or the default value if it doesn't exist or it's not an integral number.default byte[]
Returns the bytes located at the given path or null if it doesn't exist.default byte[]
Returns the bytes located at the given path or the default value provided if it doesn't exist.default Boolean
Returns the boolean located at the given path or null if it doesn't exist.default Boolean
Returns the boolean located at the given path or the default value provided if it doesn't exist.default Double
Returns the decimal number located at the given path as a double or null if it doesn't exist or it's not a decimal number.default Double
Returns the decimal number located at the given path as a double or the default value provided if it doesn't exist or it's not a decimal number.default Instant
Json.getInstant
(JsPath path) Returns the instant located at the given path or null if it doesn't exist.default Instant
Json.getInstant
(JsPath path, Supplier<Instant> orElse) Returns the instant located at the given path or the default value provided if it doesn't exist.default Integer
Returns the integral number located at the given path as an integer or null if it doesn't exist or it's not an integral number or it's an integral number but doesn't fit in an integer.default Integer
Returns the integral number located at the given path as an integer or the default value provided if it doesn't exist or it's not an integral number or it's an integral number but doesn't fit in an integer.default Long
Returns the integral number located at the given path as a long or null if it doesn't exist or it's not an integral number or it's an integral number but doesn't fit in a long.default Long
Returns the integral number located at the given path as a long or the default value provided if it doesn't exist or it's not an integral number or it's an integral number but doesn't fit in a long.default JsObj
Returns the object located at the given path or null if it doesn't exist or it's not an object.default JsObj
Returns the object located at the given path or the default value provided if it doesn't exist or it's not an object.default String
Returns the string located at the given path or null if it doesn't exist or it's not an string.default String
Returns the string located at the given path or the default value provided if it doesn't exist or it's not an string.lens that focus on the array of bytes located at a path in an arrayoptional that focus on the instant located at a path in an arraylens that focus on an instant located at a path in an object.optional that focus on the instant located at a path in an objectfun.optic.Lens<JsArray,
BigInteger> JsOptics.JsArrayLenses.integralNum
(JsPath path) lens that focus on the integral number located at a path in an arrayfun.optic.Option<JsArray,
BigInteger> JsOptics.JsArrayOptionals.integralNum
(JsPath path) optional that focus on the integral number located at a path in an arrayfun.optic.Lens<JsObj,
BigInteger> JsOptics.JsObjLenses.integralNum
(JsPath path) lens that focus on a integral number located at a path in an object.fun.optic.Option<JsObj,
BigInteger> JsOptics.JsObjOptional.integralNum
(JsPath path) optional that focus on the integral number located at a path in an objectlens that focus on the integer number located at a path in an arrayoptional that focus on the integer number located at a path in an arraylens that focus on a integer number located at a path in an object.optional that focus on the integer number located at a path in an objectlens that focus on the long number located at a path in an arrayoptional that focus on the long number located at a path in an arraylens that focus on a long number located at a path in an object.optional that focus on the long number located at a path in an objectlens that focus on the json object located at a path in an arrayoptional that focus on the object located at a path in an arraylens that focus on a json object located at a path in an object.optional that focus on the object located at a path in an objectstatic JsObj
static JsObj
static JsObj
static JsObj
JsObj.of
(JsPath path1, JsValue el1, JsPath path2, JsValue el2, JsPath path3, JsValue el3, JsPath path4, JsValue el4) static JsObj
JsObj.of
(JsPath path1, JsValue el1, JsPath path2, JsValue el2, JsPath path3, JsValue el3, JsPath path4, JsValue el4, JsPath path5, JsValue el5) static JsObj
JsObj.of
(JsPath path1, JsValue el1, JsPath path2, JsValue el2, JsPath path3, JsValue el3, JsPath path4, JsValue el4, JsPath path5, JsValue el5, JsPath path6, JsValue el6) static JsObj
JsObj.of
(JsPath path1, JsValue el1, JsPath path2, JsValue el2, JsPath path3, JsValue el3, JsPath path4, JsValue el4, JsPath path5, JsValue el5, JsPath path6, JsValue el6, JsPath path7, JsValue el7) static JsObj
JsObj.of
(JsPath path1, JsValue el1, JsPath path2, JsValue el2, JsPath path3, JsValue el3, JsPath path4, JsValue el4, JsPath path5, JsValue el5, JsPath path6, JsValue el6, JsPath path7, JsValue el7, JsPath path8, JsValue el8) static JsObj
JsObj.of
(JsPath path1, JsValue el1, JsPath path2, JsValue el2, JsPath path3, JsValue el3, JsPath path4, JsValue el4, JsPath path5, JsValue el5, JsPath path6, JsValue el6, JsPath path7, JsValue el7, JsPath path8, JsValue el8, JsPath path9, JsValue el9) static JsObj
JsObj.of
(JsPath path1, JsValue el1, JsPath path2, JsValue el2, JsPath path3, JsValue el3, JsPath path4, JsValue el4, JsPath path5, JsValue el5, JsPath path6, JsValue el6, JsPath path7, JsValue el7, JsPath path8, JsValue el8, JsPath path9, JsValue el9, JsPath path10, JsValue el10) static JsObj
JsObj.of
(JsPath path1, JsValue el1, JsPath path2, JsValue el2, JsPath path3, JsValue el3, JsPath path4, JsValue el4, JsPath path5, JsValue el5, JsPath path6, JsValue el6, JsPath path7, JsValue el7, JsPath path8, JsValue el8, JsPath path9, JsValue el9, JsPath path10, JsValue el10, JsPath path11, JsValue el11) static JsObj
JsObj.of
(JsPath path1, JsValue el1, JsPath path2, JsValue el2, JsPath path3, JsValue el3, JsPath path4, JsValue el4, JsPath path5, JsValue el5, JsPath path6, JsValue el6, JsPath path7, JsValue el7, JsPath path8, JsValue el8, JsPath path9, JsValue el9, JsPath path10, JsValue el10, JsPath path11, JsValue el11, JsPath path12, JsValue el12) static JsObj
JsObj.of
(JsPath path1, JsValue el1, JsPath path2, JsValue el2, JsPath path3, JsValue el3, JsPath path4, JsValue el4, JsPath path5, JsValue el5, JsPath path6, JsValue el6, JsPath path7, JsValue el7, JsPath path8, JsValue el8, JsPath path9, JsValue el9, JsPath path10, JsValue el10, JsPath path11, JsValue el11, JsPath path12, JsValue el12, JsPath path13, JsValue el13) static JsObj
JsObj.of
(JsPath path1, JsValue el1, JsPath path2, JsValue el2, JsPath path3, JsValue el3, JsPath path4, JsValue el4, JsPath path5, JsValue el5, JsPath path6, JsValue el6, JsPath path7, JsValue el7, JsPath path8, JsValue el8, JsPath path9, JsValue el9, JsPath path10, JsValue el10, JsPath path11, JsValue el11, JsPath path12, JsValue el12, JsPath path13, JsValue el13, JsPath path14, JsValue el14) static JsObj
JsObj.of
(JsPath path1, JsValue el1, JsPath path2, JsValue el2, JsPath path3, JsValue el3, JsPath path4, JsValue el4, JsPath path5, JsValue el5, JsPath path6, JsValue el6, JsPath path7, JsValue el7, JsPath path8, JsValue el8, JsPath path9, JsValue el9, JsPath path10, JsValue el10, JsPath path11, JsValue el11, JsPath path12, JsValue el12, JsPath path13, JsValue el13, JsPath path14, JsValue el14, JsPath path15, JsValue el15) static JsObj
JsObj.of
(JsPath path1, JsValue el1, JsPath path2, JsValue el2, JsPath path3, JsValue el3, JsPath path4, JsValue el4, JsPath path5, JsValue el5, JsPath path6, JsValue el6, JsPath path7, JsValue el7, JsPath path8, JsValue el8, JsPath path9, JsValue el9, JsPath path10, JsValue el10, JsPath path11, JsValue el11, JsPath path12, JsValue el12, JsPath path13, JsValue el13, JsPath path14, JsValue el14, JsPath path15, JsValue el15, JsPath path16, JsValue el16) static JsObj
JsObj.of
(JsPath path1, JsValue el1, JsPath path2, JsValue el2, JsPath path3, JsValue el3, JsPath path4, JsValue el4, JsPath path5, JsValue el5, JsPath path6, JsValue el6, JsPath path7, JsValue el7, JsPath path8, JsValue el8, JsPath path9, JsValue el9, JsPath path10, JsValue el10, JsPath path11, JsValue el11, JsPath path12, JsValue el12, JsPath path13, JsValue el13, JsPath path14, JsValue el14, JsPath path15, JsValue el15, JsPath path16, JsValue el16, JsPath path17, JsValue el17) static JsObj
JsObj.of
(JsPath path1, JsValue el1, JsPath path2, JsValue el2, JsPath path3, JsValue el3, JsPath path4, JsValue el4, JsPath path5, JsValue el5, JsPath path6, JsValue el6, JsPath path7, JsValue el7, JsPath path8, JsValue el8, JsPath path9, JsValue el9, JsPath path10, JsValue el10, JsPath path11, JsValue el11, JsPath path12, JsValue el12, JsPath path13, JsValue el13, JsPath path14, JsValue el14, JsPath path15, JsValue el15, JsPath path16, JsValue el16, JsPath path17, JsValue el17, JsPath path18, JsValue el18) static JsObj
JsObj.of
(JsPath path1, JsValue el1, JsPath path2, JsValue el2, JsPath path3, JsValue el3, JsPath path4, JsValue el4, JsPath path5, JsValue el5, JsPath path6, JsValue el6, JsPath path7, JsValue el7, JsPath path8, JsValue el8, JsPath path9, JsValue el9, JsPath path10, JsValue el10, JsPath path11, JsValue el11, JsPath path12, JsValue el12, JsPath path13, JsValue el13, JsPath path14, JsValue el14, JsPath path15, JsValue el15, JsPath path16, JsValue el16, JsPath path17, JsValue el17, JsPath path18, JsValue el18, JsPath path19, JsValue el19) static JsObj
JsObj.of
(JsPath path1, JsValue el1, JsPath path2, JsValue el2, JsPath path3, JsValue el3, JsPath path4, JsValue el4, JsPath path5, JsValue el5, JsPath path6, JsValue el6, JsPath path7, JsValue el7, JsPath path8, JsValue el8, JsPath path9, JsValue el9, JsPath path10, JsValue el10, JsPath path11, JsValue el11, JsPath path12, JsValue el12, JsPath path13, JsValue el13, JsPath path14, JsValue el14, JsPath path15, JsValue el15, JsPath path16, JsValue el16, JsPath path17, JsValue el17, JsPath path18, JsValue el18, JsPath path19, JsValue el19, JsPath path20, JsValue el20) static UserError
UserError.pathHeadIsNotAKey
(JsPath path) static UserError
UserError.pathHeadIsNotAnIndex
(JsPath path) Creates a new JsPath prepending the given path to this path.default T
Inserts the element at the path in this json, replacing any existing element and filling withJsNull
empty indexes in arrays when necessary.Inserts the element at the path in this json, replacing any existing element and filling with padElement empty indexes in arrays when necessary.boolean
JsPath.startsWith
(JsPath path) returns true if this path starts with the given path.lens that focus on the string located at a path in an arrayoptional that focus on the string located at a path in an arraylens that focus on a string located at a path in an object.optional that focus on the string located at a path in an objectlens that focus on the value located at a path in an arraylens that focus on a value located at a path in an object.Method parameters in jsonvalues with type arguments of type JsPathModifier and TypeMethodDescriptionJsArray.filterKeys
(BiPredicate<? super JsPath, ? super JsValue> filter) JsObj.filterKeys
(BiPredicate<? super JsPath, ? super JsValue> filter) Json.filterKeys
(BiPredicate<? super JsPath, ? super JsValue> filter) Filters all the keys of this json, removing those that don't ifPredicateElse the predicate.JsArray.filterObjs
(BiPredicate<? super JsPath, ? super JsObj> filter) JsObj.filterObjs
(BiPredicate<? super JsPath, ? super JsObj> filter) Json.filterObjs
(BiPredicate<? super JsPath, ? super JsObj> filter) Filters all the pair of jsons of this json, removing those that don't ifPredicateElse the predicate.JsArray.filterValues
(BiPredicate<? super JsPath, ? super JsPrimitive> filter) JsObj.filterValues
(BiPredicate<? super JsPath, ? super JsPrimitive> filter) Json.filterValues
(BiPredicate<? super JsPath, ? super JsPrimitive> filter) Filters all the pairs of elements of this json, removing those that don't ifPredicateElse the predicate.JsArray.mapKeys
(BiFunction<? super JsPath, ? super JsValue, String> fn) JsObj.mapKeys
(BiFunction<? super JsPath, ? super JsValue, String> fn) Json.mapKeys
(BiFunction<? super JsPath, ? super JsValue, String> fn) Maps all the keys of this json.JsArray.mapObjs
(BiFunction<? super JsPath, ? super JsObj, ? extends JsValue> fn) JsObj.mapObjs
(BiFunction<? super JsPath, ? super JsObj, ? extends JsValue> fn) Json.mapObjs
(BiFunction<? super JsPath, ? super JsObj, ? extends JsValue> fn) Maps all the jsons of this json.JsArray.mapValues
(BiFunction<? super JsPath, ? super JsPrimitive, ? extends JsValue> fn) JsObj.mapValues
(BiFunction<? super JsPath, ? super JsPrimitive, ? extends JsValue> fn) Json.mapValues
(BiFunction<? super JsPath, ? super JsPrimitive, ? extends JsValue> fn) Maps all the values of this json.<R> Optional<R>
JsArray.reduce
(BinaryOperator<R> op, BiFunction<? super JsPath, ? super JsPrimitive, R> map, BiPredicate<? super JsPath, ? super JsPrimitive> predicate) <R> Optional<R>
JsArray.reduce
(BinaryOperator<R> op, BiFunction<? super JsPath, ? super JsPrimitive, R> map, BiPredicate<? super JsPath, ? super JsPrimitive> predicate) <R> Optional<R>
JsObj.reduce
(BinaryOperator<R> op, BiFunction<? super JsPath, ? super JsPrimitive, R> map, BiPredicate<? super JsPath, ? super JsPrimitive> predicate) <R> Optional<R>
JsObj.reduce
(BinaryOperator<R> op, BiFunction<? super JsPath, ? super JsPrimitive, R> map, BiPredicate<? super JsPath, ? super JsPrimitive> predicate) <R> Optional<R>
Json.reduce
(BinaryOperator<R> op, BiFunction<? super JsPath, ? super JsPrimitive, R> map, BiPredicate<? super JsPath, ? super JsPrimitive> predicate) Performs a reduction on the values of this json that satisfy the predicate.<R> Optional<R>
Json.reduce
(BinaryOperator<R> op, BiFunction<? super JsPath, ? super JsPrimitive, R> map, BiPredicate<? super JsPath, ? super JsPrimitive> predicate) Performs a reduction on the values of this json that satisfy the predicate. -
Uses of JsPath in jsonvalues.spec
Fields in jsonvalues.spec declared as JsPathMethods in jsonvalues.spec with parameters of type JsPath