public class PathBuilderImpl extends Object implements Path.Builder
| Constructor and Description |
|---|
PathBuilderImpl() |
| Modifier and Type | Method and Description |
|---|---|
Path.Builder |
append(Fqn fqn)
Append all segments of a Fully Qualified Name.
|
Path.Builder |
append(Path path)
Append another path.
|
Path.Builder |
append(Path path,
int startIdx,
int endIdx)
Append part of another path.
|
PathBuilderImpl |
attr(String attr)
Add an attribute node to the path.
|
Path |
build() |
PathBuilderImpl |
index(long index)
Add an index node to the path.
|
public PathBuilderImpl attr(String attr)
Path.Builderattr in interface Path.Builderattr - The attribute name, cannot be null.public PathBuilderImpl index(long index)
Path.Builderindex in interface Path.Builderpublic Path.Builder append(Path path)
Path.Builderappend in interface Path.Builderpublic Path.Builder append(Path path, int startIdx, int endIdx)
Path.Builderappend in interface Path.Builderpublic Path.Builder append(Fqn fqn)
Path.Builderappend in interface Path.Builderpublic Path build()
build in interface Path.BuilderCopyright © 2016. All rights reserved.