Package io.kjson.pointer
Object JSONRef.Companion
-
- All Implemented Interfaces:
public class JSONRef.Companion
-
-
Field Summary
Fields Modifier and Type Field Description public final static JSONRef.CompanionINSTANCE
-
Method Summary
Modifier and Type Method Description final StringrefClassName(KType $self)Get the class name of the reference class for error messages (this function is public only because it is required by public inline functions). final <T extends JSONValue> JSONRef<T>of(T json)Create a strongly-typed reference to the base of the given JSON. final <T extends JSONValue> JSONRef<T>of(JSONValue json, String pointer)Create a strongly-typed reference using the given base JSON and a pointer in Stringform.final <T extends JSONValue> JSONRef<T>of(JSONValue json, JSONPointer pointer)Create a strongly-typed reference using the given base JSON and pointer. final JSONRef<JSONValue>untyped(JSONValue base, JSONPointer pointer)Create an untyped reference using the given base JSON and pointer. -
-
Method Detail
-
refClassName
final String refClassName(KType $self)
Get the class name of the reference class for error messages (this function is public only because it is required by public inline functions).
-
of
final <T extends JSONValue> JSONRef<T> of(T json)
Create a strongly-typed reference to the base of the given JSON.
-
of
final <T extends JSONValue> JSONRef<T> of(JSONValue json, String pointer)
Create a strongly-typed reference using the given base JSON and a pointer in
Stringform.
-
of
final <T extends JSONValue> JSONRef<T> of(JSONValue json, JSONPointer pointer)
Create a strongly-typed reference using the given base JSON and pointer.
-
untyped
final JSONRef<JSONValue> untyped(JSONValue base, JSONPointer pointer)
Create an untyped reference using the given base JSON and pointer.
-
-
-
-