JsPath |
JsPath.append(JsPath path) |
Creates a new JsPath appending the given path to this path.
|
Lens<JsArray,JsArray> |
JsOptics.JsArrayLenses.array(JsPath path) |
lens that focus on the json array located at a path in an array
|
Option<JsArray,JsArray> |
JsOptics.JsArrayOptionals.array(JsPath path) |
optional that focus on the array located at a path in an array
|
Lens<JsObj,JsArray> |
JsOptics.JsObjLenses.array(JsPath path) |
lens that focus on a json object located at a path in an object.
|
Option<JsObj,JsArray> |
JsOptics.JsObjOptional.array(JsPath path) |
optional that focus on the array located at a path in an object
|
Lens<JsArray,byte[]> |
JsOptics.JsArrayLenses.binary(JsPath path) |
lens that focus on an array of bytes located at a path in an array
|
Lens<JsObj,byte[]> |
JsOptics.JsObjLenses.binary(JsPath path) |
lens that focus on an array of bytes located at a path in an object.
|
Option<JsObj,byte[]> |
JsOptics.JsObjOptional.binary(JsPath path) |
optional that focus on the array of bytes located at a path in an object
|
Lens<JsArray,java.lang.Boolean> |
JsOptics.JsArrayLenses.bool(JsPath path) |
lens that focus on the boolean located at a path in an array
|
Option<JsArray,java.lang.Boolean> |
JsOptics.JsArrayOptionals.bool(JsPath path) |
optional that focus on the boolean located at a path in an array
|
Lens<JsObj,java.lang.Boolean> |
JsOptics.JsObjLenses.bool(JsPath path) |
lens that focus on a boolean located at a path in an object.
|
Option<JsObj,java.lang.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 than 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.
|
Lens<JsArray,java.math.BigDecimal> |
JsOptics.JsArrayLenses.decimalNum(JsPath path) |
lens that focus on the decimal number located at a path in an array
|
Option<JsArray,java.math.BigDecimal> |
JsOptics.JsArrayOptionals.decimalNum(JsPath path) |
optional that focus on the decimal number located at a path in an array
|
Lens<JsObj,java.math.BigDecimal> |
JsOptics.JsObjLenses.decimalNum(JsPath path) |
lens that focus on a decimal number located at a path in an object.
|
Option<JsObj,java.math.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
|
Lens<JsArray,java.lang.Double> |
JsOptics.JsArrayLenses.doubleNum(JsPath path) |
lens that focus on the double number located at a path in an array
|
Option<JsArray,java.lang.Double> |
JsOptics.JsArrayOptionals.doubleNum(JsPath path) |
optional that focus on the double number located at a path in an array
|
Lens<JsObj,java.lang.Double> |
JsOptics.JsObjLenses.doubleNum(JsPath path) |
lens that focus on a double number located at a path in an object.
|
Option<JsObj,java.lang.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 java.math.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 java.math.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 byte[] |
Json.getBinary(JsPath path) |
Returns the bytes located at the given path or null if it doesn't exist.
|
default java.lang.Boolean |
Json.getBool(JsPath path) |
Returns the boolean located at the given path or null if it doesn't exist.
|
default java.lang.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 java.time.Instant |
Json.getInstant(JsPath path) |
Returns the instant located at the given path or null if it doesn't exist.
|
default java.lang.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 java.lang.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 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 java.lang.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.
|
Lens<JsArray,java.time.Instant> |
JsOptics.JsArrayLenses.instant(JsPath path) |
lens that focus on the array of bytes located at a path in an array
|
Option<JsArray,java.time.Instant> |
JsOptics.JsArrayOptionals.instant(JsPath path) |
optional that focus on the instant located at a path in an array
|
Lens<JsObj,java.time.Instant> |
JsOptics.JsObjLenses.instant(JsPath path) |
lens that focus on an instant located at a path in an object.
|
Option<JsObj,java.time.Instant> |
JsOptics.JsObjOptional.instant(JsPath path) |
optional that focus on the instant located at a path in an object
|
Lens<JsArray,java.math.BigInteger> |
JsOptics.JsArrayLenses.integralNum(JsPath path) |
lens that focus on the integral number located at a path in an array
|
Option<JsArray,java.math.BigInteger> |
JsOptics.JsArrayOptionals.integralNum(JsPath path) |
optional that focus on the integral number located at a path in an array
|
Lens<JsObj,java.math.BigInteger> |
JsOptics.JsObjLenses.integralNum(JsPath path) |
lens that focus on a integral number located at a path in an object.
|
Option<JsObj,java.math.BigInteger> |
JsOptics.JsObjOptional.integralNum(JsPath path) |
optional that focus on the integral number located at a path in an object
|
Lens<JsArray,java.lang.Integer> |
JsOptics.JsArrayLenses.intNum(JsPath path) |
lens that focus on the integer number located at a path in an array
|
Option<JsArray,java.lang.Integer> |
JsOptics.JsArrayOptionals.intNum(JsPath path) |
optional that focus on the integer number located at a path in an array
|
Lens<JsObj,java.lang.Integer> |
JsOptics.JsObjLenses.intNum(JsPath path) |
lens that focus on a integer number located at a path in an object.
|
Option<JsObj,java.lang.Integer> |
JsOptics.JsObjOptional.intNum(JsPath path) |
optional that focus on the integer number located at a path in an object
|
Lens<JsArray,java.lang.Long> |
JsOptics.JsArrayLenses.longNum(JsPath path) |
lens that focus on the long number located at a path in an array
|
Option<JsArray,java.lang.Long> |
JsOptics.JsArrayOptionals.longNum(JsPath path) |
optional that focus on the long number located at a path in an array
|
Lens<JsObj,java.lang.Long> |
JsOptics.JsObjLenses.longNum(JsPath path) |
lens that focus on a long number located at a path in an object.
|
Option<JsObj,java.lang.Long> |
JsOptics.JsObjOptional.longNum(JsPath path) |
optional that focus on the long number located at a path in an object
|
Lens<JsArray,JsObj> |
JsOptics.JsArrayLenses.obj(JsPath path) |
lens that focus on the json object located at a path in an array
|
Option<JsArray,JsObj> |
JsOptics.JsArrayOptionals.obj(JsPath path) |
optional that focus on the object located at a path in an array
|
Lens<JsObj,JsObj> |
JsOptics.JsObjLenses.obj(JsPath path) |
lens that focus on a json object located at a path in an object.
|
Option<JsObj,JsObj> |
JsOptics.JsObjOptional.obj(JsPath path) |
optional that focus on the object located at a path in an object
|
static JsPair |
JsPair.of(JsPath path,
boolean b) |
Returns a json pair from the path and the boolean.
|
static JsPair |
JsPair.of(JsPath path,
double d) |
Returns a json pair from the path and the double.
|
static JsPair |
JsPair.of(JsPath path,
int i) |
Returns a json pair from the path and the integer.
|
static JsPair |
JsPair.of(JsPath path,
long l) |
Returns a json pair from the path and the long.
|
static JsPair |
JsPair.of(JsPath path,
java.lang.String s) |
Returns a json pair from the path and the string.
|
static JsPair |
JsPair.of(JsPath path,
java.math.BigDecimal bd) |
Returns a json pair from the path and the big decimal.
|
static JsPair |
JsPair.of(JsPath path,
java.math.BigInteger bi) |
Returns a json pair from the path and the big integer.
|
static JsPair |
JsPair.of(JsPath path,
JsValue elem) |
Returns a json pair from the path and the json element.
|
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.
|
Lens<JsArray,java.lang.String> |
JsOptics.JsArrayLenses.str(JsPath path) |
lens that focus on the string located at a path in an array
|
Option<JsArray,java.lang.String> |
JsOptics.JsArrayOptionals.str(JsPath path) |
optional that focus on the string located at a path in an array
|
Lens<JsObj,java.lang.String> |
JsOptics.JsObjLenses.str(JsPath path) |
lens that focus on a string located at a path in an object.
|
Option<JsObj,java.lang.String> |
JsOptics.JsObjOptional.str(JsPath path) |
optional that focus on the string located at a path in an object
|
Lens<JsArray,JsValue> |
JsOptics.JsArrayLenses.value(JsPath path) |
lens that focus on the value located at a path in an array
|
Lens<JsObj,JsValue> |
JsOptics.JsObjLenses.value(JsPath path) |
lens that focus on a value located at a path in an object.
|