public static final class PathSegment.NameSegment extends PathSegment
PathSegment.ArraySegment, PathSegment.NameSegment
originalValue, originalValueType
Constructor and Description |
---|
NameSegment(CharSequence n) |
NameSegment(CharSequence n,
Object originalValue,
TypeProtos.MajorType valueType) |
NameSegment(CharSequence n,
PathSegment child) |
Modifier and Type | Method and Description |
---|---|
PathSegment.NameSegment |
clone() |
PathSegment.NameSegment |
cloneWithNewChild(PathSegment newChild)
Makes copy of segment chain with
newChild added at the end. |
PathSegment.NameSegment |
getNameSegment() |
String |
getPath() |
boolean |
isArray() |
boolean |
isNamed() |
boolean |
nameEquals(String name) |
boolean |
segmentEquals(PathSegment obj) |
int |
segmentHashCode() |
String |
toString() |
contains, equals, getArraySegment, getChild, getOriginalValue, getOriginalValueType, hashCode, isLastPath
public NameSegment(CharSequence n, Object originalValue, TypeProtos.MajorType valueType)
public NameSegment(CharSequence n, PathSegment child)
public NameSegment(CharSequence n)
public String getPath()
public boolean isArray()
isArray
in class PathSegment
public boolean isNamed()
isNamed
in class PathSegment
public PathSegment.NameSegment getNameSegment()
getNameSegment
in class PathSegment
public int segmentHashCode()
segmentHashCode
in class PathSegment
public boolean segmentEquals(PathSegment obj)
segmentEquals
in class PathSegment
public boolean nameEquals(String name)
public PathSegment.NameSegment clone()
clone
in class PathSegment
public PathSegment.NameSegment cloneWithNewChild(PathSegment newChild)
PathSegment
newChild
added at the end.cloneWithNewChild
in class PathSegment
newChild
- new child to addCopyright © 1970 The Apache Software Foundation. All rights reserved.