Uses of Class
jsonvalues.JsPath
Packages that use JsPath
Package
Description
This package includes all the classes to represents, create and manipulate JSON
This package includes all the classes to define specs to validate and parse JSON
-
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 JsPathJsPath.empty()Returns the singleton empty path.static JsPathJsPath.fromIndex(int i) returns a path from an indexstatic JsPathreturns 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 tothisJsPath.JsPath.mapKeys(UnaryOperator<String> map) Creates a new JsPath applying the given map function to every key of this path.JsPair.path()Returns the value of thepathrecord component.static JsPathCreates 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 objectintCompares 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.booleanreturns true if this path contains the given pathdefault booleanJson.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 objectbooleanreturns true if this path ends with the given path.Returns the element located at the given path orJsNothingif it doesn't exist.default JsArrayReturns the array located at the given path or null if it doesn't exist or it's not an array.default JsArrayReturns the array located at the given path or the default value provided if it doesn't exist or it's not an array.default BigDecimalReturns 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 BigDecimalJson.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 BigIntegerReturns 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 BigIntegerJson.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 BooleanReturns the boolean located at the given path or null if it doesn't exist.default BooleanReturns the boolean located at the given path or the default value provided if it doesn't exist.default DoubleReturns 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 DoubleReturns 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 InstantJson.getInstant(JsPath path) Returns the instant located at the given path or null if it doesn't exist.default InstantJson.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 IntegerReturns 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 IntegerReturns 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 LongReturns 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 LongReturns 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 JsObjReturns the object located at the given path or null if it doesn't exist or it's not an object.default JsObjReturns the object located at the given path or the default value provided if it doesn't exist or it's not an object.default StringReturns the string located at the given path or null if it doesn't exist or it's not an string.default StringReturns 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 JsObjStatic factory method to create one-element JSON objectstatic JsObjStatic factory method to create two-element JSON objectstatic JsObjStatic factory method to create three-element JSON objectstatic JsObjJsObj.of(JsPath path1, JsValue el1, JsPath path2, JsValue el2, JsPath path3, JsValue el3, JsPath path4, JsValue el4) Static factory method to create four-element JSON objectstatic JsObjJsObj.of(JsPath path1, JsValue el1, JsPath path2, JsValue el2, JsPath path3, JsValue el3, JsPath path4, JsValue el4, JsPath path5, JsValue el5) Static factory method to create five-element JSON objectstatic JsObjJsObj.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 factory method to create six-element JSON objectstatic JsObjJsObj.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 factory method to create seven-element JSON objectstatic JsObjJsObj.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 factory method to create eight-element JSON objectstatic JsObjJsObj.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 factory method to create nine-element JSON objectstatic JsObjJsObj.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 factory method to create ten-element JSON objectstatic JsObjJsObj.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 factory method to create eleven-element JSON objectstatic JsObjJsObj.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 factory method to create twelve-element JSON objectstatic JsObjJsObj.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 factory method to create thirteen-element JSON objectstatic JsObjJsObj.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 factory method to create fourteen-element JSON objectstatic JsObjJsObj.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 factory method to create fifteen-element JSON objectstatic JsObjJsObj.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 factory method to create sixteen-element JSON objectstatic JsObjJsObj.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 factory method to create seventeen-element JSON objectstatic JsObjJsObj.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 factory method to create eighteen-element JSON objectstatic JsObjJsObj.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 factory method to create nineteen-element JSON objectstatic JsObjJsObj.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 factory method to create twenty-element JSON objectstatic UserErrorUserError.pathHeadIsNotAKey(JsPath path) static UserErrorUserError.pathHeadIsNotAnIndex(JsPath path) Creates a new JsPath prepending the given path to this path.default TInserts the element at the path in this json, replacing any existing element and filling withJsNullempty 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.booleanJsPath.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.Constructors in jsonvalues with parameters of type JsPath -
Uses of JsPath in jsonvalues.spec
Fields in jsonvalues.spec declared as JsPathMethods in jsonvalues.spec with parameters of type JsPath