public abstract class PElement
extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
protected |
PElement(PElement parent,
java.lang.String contextName)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addPathTo(java.lang.StringBuilder result)
Append the path to the StringBuilder.
|
protected java.lang.String |
getContextName() |
java.lang.String |
getCurrentPath()
Gets the string representation of the path to the current JSON element.
|
PElement |
getParent() |
java.lang.String |
getPath(java.lang.String key)
Gets the string representation of the path to the current JSON element.
|
protected PElement(PElement parent, java.lang.String contextName)
parent - the parent elementcontextName - the field name of this element in the parent.public final java.lang.String getPath(java.lang.String key)
key - the leaf keyprotected final java.lang.String getContextName()
public final java.lang.String getCurrentPath()
protected final void addPathTo(java.lang.StringBuilder result)
result - the string builder to add the path to.public final PElement getParent()