public static final class PathSegment.ArraySegment extends PathSegment
PathSegment.ArraySegment, PathSegment.NameSegment
originalValue, 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, isLastPath
public 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 PathSegment
public boolean isNamed()
isNamed
in class PathSegment
public PathSegment.ArraySegment getArraySegment()
getArraySegment
in class PathSegment
public int segmentHashCode()
segmentHashCode
in class PathSegment
public boolean segmentEquals(PathSegment obj)
segmentEquals
in class PathSegment
public PathSegment clone()
clone
in class PathSegment
public PathSegment.ArraySegment 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.