Package dev.iahmadgad.json
Class JSONPointer
java.lang.Object
dev.iahmadgad.json.JSONPointer
JSONPointer Class.
JSONPointer is a pointer that points to some value in JSONObject or JSONArray.
- Since:
- 0.3
-
Constructor Summary
ConstructorDescriptionJSONPointer
(JSONArray node, String path) The main Constructor that assigns JSONPointer's path and node.JSONPointer
(JSONObject node, String path) The main Constructor that assigns JSONPointer's path and node.JSONPointer
(String path) The main Constructor that assigns JSONPointer's path. -
Method Summary
Modifier and TypeMethodDescriptionprotected Object
Gets the pointee (object) stored in this JSONPointer.protected void
Sets the main node (JSONObject) of the JSONPointer.protected void
setNode
(JSONObject node) Sets the main node (JSONArray) of the JSONPointer.
-
Constructor Details
-
JSONPointer
The main Constructor that assigns JSONPointer's path and node.- Parameters:
node
-path
-
-
JSONPointer
The main Constructor that assigns JSONPointer's path and node.- Parameters:
node
-path
-
-
JSONPointer
The main Constructor that assigns JSONPointer's path.- Parameters:
path
-
-
-
Method Details
-
setNode
Sets the main node (JSONObject) of the JSONPointer.- Parameters:
node
-
-
setNode
Sets the main node (JSONArray) of the JSONPointer.- Parameters:
node
-
-
getPointee
Gets the pointee (object) stored in this JSONPointer.- Returns:
-