class JSONPathSegmentName extends JSONPathSegment
JSONPathSegment.AllSegment, JSONPathSegment.CycleNameSegment, JSONPathSegment.EntrySetSegment, JSONPathSegment.EvalSegment, JSONPathSegment.KeysSegment, JSONPathSegment.LengthSegment, JSONPathSegment.MaxSegment, JSONPathSegment.MinSegment, JSONPathSegment.MultiIndexSegment, JSONPathSegment.MultiNameSegment, JSONPathSegment.RandomIndexSegment, JSONPathSegment.RangeIndexSegment, JSONPathSegment.RootSegment, JSONPathSegment.SelfSegment, JSONPathSegment.SumSegment, JSONPathSegment.ValuesSegment| Modifier and Type | Field and Description |
|---|---|
(package private) static long |
HASH_NAME |
(package private) static long |
HASH_ORDINAL |
(package private) java.lang.String |
name |
(package private) long |
nameHashCode |
| Constructor and Description |
|---|
JSONPathSegmentName(java.lang.String name,
long nameHashCode) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(JSONReader jsonReader,
JSONPath.Context context) |
boolean |
contains(JSONPath.Context context) |
boolean |
equals(java.lang.Object o) |
void |
eval(JSONPath.Context context) |
int |
hashCode() |
boolean |
remove(JSONPath.Context context) |
void |
set(JSONPath.Context context,
java.lang.Object value) |
void |
setCallback(JSONPath.Context context,
java.util.function.BiFunction callback) |
java.lang.String |
toString() |
setInt, setLongstatic final long HASH_NAME
static final long HASH_ORDINAL
final java.lang.String name
final long nameHashCode
public JSONPathSegmentName(java.lang.String name,
long nameHashCode)
public boolean remove(JSONPath.Context context)
remove in class JSONPathSegmentpublic boolean contains(JSONPath.Context context)
contains in class JSONPathSegmentpublic void eval(JSONPath.Context context)
eval in class JSONPathSegmentpublic void set(JSONPath.Context context, java.lang.Object value)
set in class JSONPathSegmentpublic void setCallback(JSONPath.Context context, java.util.function.BiFunction callback)
setCallback in class JSONPathSegmentpublic void accept(JSONReader jsonReader, JSONPath.Context context)
accept in class JSONPathSegmentpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object