public abstract class AbstractJSONObjectVisitor extends Object
| Constructor and Description |
|---|
AbstractJSONObjectVisitor() |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(com.google.gson.JsonArray jsonArray)
Visit the given JSON Array and all its descendants.
|
void |
accept(com.google.gson.JsonObject jsonObject)
Visit the given JSON Object and all its descendants.
|
int |
getCurrentDepth() |
protected void |
traverseJSONArray(com.google.gson.JsonArray jsonArray)
Visit each JSON Object in the JSON Array.
|
protected void |
traverseJSONObject(com.google.gson.JsonObject jsonObject)
Visit each JSON Object in the JSON Array.
|
protected abstract void |
visit(com.google.gson.JsonObject jsonObject)
Implement this method to do actual work on the JSON Object.
|
public int getCurrentDepth()
public void accept(com.google.gson.JsonObject jsonObject)
jsonObject - The JSON Objectpublic void accept(com.google.gson.JsonArray jsonArray)
jsonArray - The JSON Objectprotected final void traverseJSONObject(com.google.gson.JsonObject jsonObject)
jsonObject - The JSON Arrayprotected final void traverseJSONArray(com.google.gson.JsonArray jsonArray)
jsonArray - The JSON Arrayprotected abstract void visit(com.google.gson.JsonObject jsonObject)
jsonObject - The JSON ObjectCopyright © 2013–2020 Adobe. All rights reserved.