@API.Internal public static final class FieldSegment.NameSegment extends FieldSegment
FieldSegment.IndexSegment, FieldSegment.NameSegment, FieldSegment.Type
child, FIELD_SEGMENT_COMPARATOR, hash, type
Constructor and Description |
---|
NameSegment(String n,
FieldSegment child,
boolean quoted)
For Antlr parser's use only.
|
Modifier and Type | Method and Description |
---|---|
String |
asJsonString() |
String |
asJsonString(JsonOptions options) |
FieldSegment.NameSegment |
clone() |
protected StringBuilder |
escape(StringBuilder sb,
boolean quote) |
String |
getName() |
FieldSegment.NameSegment |
getNameSegment() |
boolean |
isNamed() |
protected int |
segmentCompareTo(FieldSegment o) |
protected boolean |
segmentEquals(FieldSegment obj) |
protected int |
segmentHashCode() |
static String |
unEscape(String rawString) |
static String |
unQuote(String rawString) |
protected StringBuilder |
writeSegment(StringBuilder sb,
boolean quote) |
asPathString, compareTo, contains, equals, getChild, getIndexSegment, hashCode, isArray, isIndexed, isLastPath, isLeaf, isMap, toString
@API.Internal public NameSegment(String n, FieldSegment child, boolean quoted)
public String getName()
public boolean isNamed()
isNamed
in class FieldSegment
true
if the current segment is identified by a nameprotected int segmentCompareTo(FieldSegment o)
public FieldSegment.NameSegment getNameSegment()
getNameSegment
in class FieldSegment
protected int segmentHashCode()
segmentHashCode
in class FieldSegment
protected boolean segmentEquals(FieldSegment obj)
segmentEquals
in class FieldSegment
public FieldSegment.NameSegment clone()
clone
in class FieldSegment
protected StringBuilder writeSegment(StringBuilder sb, boolean quote)
writeSegment
in class FieldSegment
protected StringBuilder escape(StringBuilder sb, boolean quote)
public String asJsonString()
public String asJsonString(JsonOptions options)
Copyright © 2015–2018 MapR Technologies, Inc.. All rights reserved.