public class Path extends Object
| Constructor and Description |
|---|
Path()
Create root.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getIndex() |
String |
getKey() |
int |
getListSize() |
Path |
getPredecessor() |
boolean |
isList() |
boolean |
isMap() |
boolean |
isRoot() |
Path |
listEntry(int listIndex,
int listSize)
Create a new path based on this with a list index.
|
Path |
mapEntry(String key)
Create a new path based on this with a map key.
|
String |
toString() |
public Path listEntry(int listIndex, int listSize)
listIndex - The index, should start at 0.listSize - Must be greater than listIndexpublic Path mapEntry(String key)
key - The map key.public boolean isRoot()
public boolean isList()
public boolean isMap()
public Path getPredecessor()
public String getKey()
public int getIndex()
public int getListSize()
Copyright © 2010–2017. All rights reserved.