public interface Path
| Modifier and Type | Interface and Description |
|---|---|
static interface |
Path.Builder
Builder interface for the Path.
|
static class |
Path.NodeType
Describe the node type.
|
| Modifier and Type | Method and Description |
|---|---|
Path |
append(Path toAppend) |
Path |
append(String toAppend) |
String |
attr(int i) |
static Path |
empty() |
static Path.Builder |
from(Path path)
Start building a Path from another name.
|
static Path.Builder |
from(Path path,
int startIdx,
int endIdx)
Start building a Path from another name.
|
static Path.Builder |
fromAttr(String attr)
Start building a Path from an initial attribute.
|
Path |
head(int toIndex) |
long |
index(int i) |
static Path.Builder |
newBuilder() |
Path.NodeType |
nodeType(int i) |
static Path |
of(ReaderCursor c)
Create a path from a ReaderCursor.
|
static Path |
of(String path)
Create a new path from a String.
|
static Path |
ofAttr(String attr)
Create a new path from the specific attribute.
|
int |
size() |
boolean |
startsWith(Path other) |
Path |
tail(int size) |
Path |
tailFrom(int fromIndex) |
static Path empty()
static Path of(ReaderCursor c)
static Path of(String path)
static Path.Builder fromAttr(String attr)
static Path.Builder from(Path path)
static Path.Builder from(Path path, int startIdx, int endIdx)
static Path.Builder newBuilder()
int size()
Path.NodeType nodeType(int i)
String attr(int i)
long index(int i)
Path head(int toIndex)
toIndex - the number of nodes to return.IndexOutOfBoundsException - if toIndex > than size.Path tail(int size)
size - the number of segments to return.IndexOutOfBoundsException - if size > than fqn size.Path tailFrom(int fromIndex)
fromIndex - the index of the starting segment.IndexOutOfBoundsException - if fromIndex > than size.boolean startsWith(Path other)
Path append(Path toAppend)
Copyright © 2015. All rights reserved.