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