JsPath |
JsPath.append(JsPath path) |
Creates a new JsPath appending the given path to this path.
|
fun.optic.Lens<JsArray,JsArray> |
JsOptics.JsArrayLenses.array(JsPath path) |
lens that focus on the json array located at a path in an array
|
fun.optic.Option<JsArray,JsArray> |
JsOptics.JsArrayOptionals.array(JsPath path) |
optional that focus on the array located at a path in an array
|
fun.optic.Lens<JsObj,JsArray> |
JsOptics.JsObjLenses.array(JsPath path) |
lens that focus on a json object located at a path in an object.
|
fun.optic.Option<JsObj,JsArray> |
JsOptics.JsObjOptional.array(JsPath path) |
optional that focus on the array located at a path in an object
|
fun.optic.Lens<JsArray,byte[]> |
JsOptics.JsArrayLenses.binary(JsPath path) |
lens that focus on an array of bytes located at a path in an array
|
fun.optic.Lens<JsObj,byte[]> |
JsOptics.JsObjLenses.binary(JsPath path) |
lens that focus on an array of bytes located at a path in an object.
|
fun.optic.Option<JsObj,byte[]> |
JsOptics.JsObjOptional.binary(JsPath path) |
optional that focus on the array of bytes located at a path in an object
|
fun.optic.Lens<JsArray,Boolean> |
JsOptics.JsArrayLenses.bool(JsPath path) |
lens that focus on the boolean located at a path in an array
|
fun.optic.Option<JsArray,Boolean> |
JsOptics.JsArrayOptionals.bool(JsPath path) |
optional that focus on the boolean located at a path in an array
|
fun.optic.Lens<JsObj,Boolean> |
JsOptics.JsObjLenses.bool(JsPath path) |
lens that focus on a boolean located at a path in an object.
|
fun.optic.Option<JsObj,Boolean> |
JsOptics.JsObjOptional.bool(JsPath path) |
optional that focus on the boolean located at a path in an object
|
int |
JsPath.compareTo(JsPath that) |
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.
|
default 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 array
|
fun.optic.Option<JsArray,BigDecimal> |
JsOptics.JsArrayOptionals.decimalNum(JsPath path) |
optional that focus on the decimal number located at a path in an array
|
fun.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 object
|
JsArray |
JsArray.delete(JsPath path) |
|
JsObj |
JsObj.delete(JsPath path) |
|
T |
Json.delete(JsPath path) |
Removes the element in this json located at the given path, if it exists, returning the same this
instance otherwise
|
fun.optic.Lens<JsArray,Double> |
JsOptics.JsArrayLenses.doubleNum(JsPath path) |
lens that focus on the double number located at a path in an array
|
fun.optic.Option<JsArray,Double> |
JsOptics.JsArrayOptionals.doubleNum(JsPath path) |
optional that focus on the double number located at a path in an array
|
fun.optic.Lens<JsObj,Double> |
JsOptics.JsObjLenses.doubleNum(JsPath path) |
lens that focus on a double number located at a path in an object.
|
fun.optic.Option<JsObj,Double> |
JsOptics.JsObjOptional.doubleNum(JsPath path) |
optional that focus on the double number located at a path in an object
|
boolean |
JsPath.endsWith(JsPath path) |
returns true if this path ends with the given path.
|
JsValue |
JsArray.get(JsPath path) |
|
JsValue |
JsObj.get(JsPath path) |
|
JsValue |
Json.get(JsPath path) |
Returns the element located at the given path or JsNothing if it doesn't exist.
|
default JsArray |
Json.getArray(JsPath path) |
Returns the array located at the given path or null if it doesn't exist or it's not an array.
|
default JsArray |
Json.getArray(JsPath path,
Supplier<JsArray> orElse) |
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 |
Json.getBigDec(JsPath path) |
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 |
Json.getBigInt(JsPath path) |
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[] |
Json.getBinary(JsPath path) |
Returns the bytes located at the given path or null if it doesn't exist.
|
default byte[] |
Json.getBinary(JsPath path,
Supplier<byte[]> orElse) |
Returns the bytes located at the given path or the default value provided if it doesn't exist.
|
default Boolean |
Json.getBool(JsPath path) |
Returns the boolean located at the given path or null if it doesn't exist.
|
default Boolean |
Json.getBool(JsPath path,
Supplier<Boolean> orElse) |
Returns the boolean located at the given path or the default value provided if it doesn't exist.
|
default Double |
Json.getDouble(JsPath path) |
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 |
Json.getDouble(JsPath path,
Supplier<Double> orElse) |
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 |
Json.getInt(JsPath path) |
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 |
Json.getInt(JsPath path,
Supplier<Integer> orElse) |
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 |
Json.getLong(JsPath path) |
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 |
Json.getLong(JsPath path,
Supplier<Long> orElse) |
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 |
Json.getObj(JsPath path) |
Returns the object located at the given path or null if it doesn't exist or it's
not an object.
|
default JsObj |
Json.getObj(JsPath path,
Supplier<JsObj> orElse) |
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 |
Json.getStr(JsPath path) |
Returns the string located at the given path or null if it doesn't exist or it's
not an string.
|
default String |
Json.getStr(JsPath path,
Supplier<String> orElse) |
Returns the string located at the given path or the default value provided if
it doesn't exist or it's not an string.
|
fun.optic.Lens<JsArray,Instant> |
JsOptics.JsArrayLenses.instant(JsPath path) |
lens that focus on the array of bytes located at a path in an array
|
fun.optic.Option<JsArray,Instant> |
JsOptics.JsArrayOptionals.instant(JsPath path) |
optional that focus on the instant located at a path in an array
|
fun.optic.Lens<JsObj,Instant> |
JsOptics.JsObjLenses.instant(JsPath path) |
lens that focus on an instant located at a path in an object.
|
fun.optic.Option<JsObj,Instant> |
JsOptics.JsObjOptional.instant(JsPath path) |
optional that focus on the instant located at a path in an object
|
fun.optic.Lens<JsArray,BigInteger> |
JsOptics.JsArrayLenses.integralNum(JsPath path) |
lens that focus on the integral number located at a path in an array
|
fun.optic.Option<JsArray,BigInteger> |
JsOptics.JsArrayOptionals.integralNum(JsPath path) |
optional that focus on the integral number located at a path in an array
|
fun.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 object
|
fun.optic.Lens<JsArray,Integer> |
JsOptics.JsArrayLenses.intNum(JsPath path) |
lens that focus on the integer number located at a path in an array
|
fun.optic.Option<JsArray,Integer> |
JsOptics.JsArrayOptionals.intNum(JsPath path) |
optional that focus on the integer number located at a path in an array
|
fun.optic.Lens<JsObj,Integer> |
JsOptics.JsObjLenses.intNum(JsPath path) |
lens that focus on a integer number located at a path in an object.
|
fun.optic.Option<JsObj,Integer> |
JsOptics.JsObjOptional.intNum(JsPath path) |
optional that focus on the integer number located at a path in an object
|
fun.optic.Lens<JsArray,Long> |
JsOptics.JsArrayLenses.longNum(JsPath path) |
lens that focus on the long number located at a path in an array
|
fun.optic.Option<JsArray,Long> |
JsOptics.JsArrayOptionals.longNum(JsPath path) |
optional that focus on the long number located at a path in an array
|
fun.optic.Lens<JsObj,Long> |
JsOptics.JsObjLenses.longNum(JsPath path) |
lens that focus on a long number located at a path in an object.
|
fun.optic.Option<JsObj,Long> |
JsOptics.JsObjOptional.longNum(JsPath path) |
optional that focus on the long number located at a path in an object
|
fun.optic.Lens<JsArray,JsObj> |
JsOptics.JsArrayLenses.obj(JsPath path) |
lens that focus on the json object located at a path in an array
|
fun.optic.Option<JsArray,JsObj> |
JsOptics.JsArrayOptionals.obj(JsPath path) |
optional that focus on the object located at a path in an array
|
fun.optic.Lens<JsObj,JsObj> |
JsOptics.JsObjLenses.obj(JsPath path) |
lens that focus on a json object located at a path in an object.
|
fun.optic.Option<JsObj,JsObj> |
JsOptics.JsObjOptional.obj(JsPath path) |
optional that focus on the object located at a path in an object
|
static JsObj |
JsObj.of(JsPath path,
JsValue el) |
|
static JsObj |
JsObj.of(JsPath path1,
JsValue el1,
JsPath path2,
JsValue el2) |
|
static JsObj |
JsObj.of(JsPath path1,
JsValue el1,
JsPath path2,
JsValue el2,
JsPath path3,
JsValue el3) |
|
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) |
|
JsPath |
JsPath.prepend(JsPath path) |
Creates a new JsPath prepending the given path to this path.
|
JsArray |
JsArray.set(JsPath path,
JsValue element) |
|
JsArray |
JsArray.set(JsPath path,
JsValue value,
JsValue padElement) |
|
JsObj |
JsObj.set(JsPath path,
JsValue element) |
|
JsObj |
JsObj.set(JsPath path,
JsValue value,
JsValue padElement) |
|
default T |
Json.set(JsPath path,
JsValue element) |
Inserts the element at the path in this json, replacing any existing element and filling with
JsNull empty indexes in arrays when necessary.
|
T |
Json.set(JsPath path,
JsValue element,
JsValue padElement) |
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.
|
fun.optic.Lens<JsArray,String> |
JsOptics.JsArrayLenses.str(JsPath path) |
lens that focus on the string located at a path in an array
|
fun.optic.Option<JsArray,String> |
JsOptics.JsArrayOptionals.str(JsPath path) |
optional that focus on the string located at a path in an array
|
fun.optic.Lens<JsObj,String> |
JsOptics.JsObjLenses.str(JsPath path) |
lens that focus on a string located at a path in an object.
|
fun.optic.Option<JsObj,String> |
JsOptics.JsObjOptional.str(JsPath path) |
optional that focus on the string located at a path in an object
|
fun.optic.Lens<JsArray,JsValue> |
JsOptics.JsArrayLenses.value(JsPath path) |
lens that focus on the value located at a path in an array
|
fun.optic.Lens<JsObj,JsValue> |
JsOptics.JsObjLenses.value(JsPath path) |
lens that focus on a value located at a path in an object.
|