abstract static class JSONPathFilter.NameFilter extends JSONPathFilter
JSONPathFilter.EndsWithSegment, JSONPathFilter.GroupFilter, JSONPathFilter.NameArrayOpSegment, JSONPathFilter.NameDecimalOpSegment, JSONPathFilter.NameDoubleOpSegment, JSONPathFilter.NameExistsFilter, JSONPathFilter.NameFilter, JSONPathFilter.NameIntBetweenSegment, JSONPathFilter.NameIntInSegment, JSONPathFilter.NameIntOpSegment, JSONPathFilter.NameIsNull, JSONPathFilter.NameLongContainsSegment, JSONPathFilter.NameMatchFilter, JSONPathFilter.NameName, JSONPathFilter.NameObjectOpSegment, JSONPathFilter.NameRLikeSegment, JSONPathFilter.NamesExistsFilter, JSONPathFilter.NameStringContainsSegment, JSONPathFilter.NameStringInSegment, JSONPathFilter.NameStringOpSegment, JSONPathFilter.NameSubFilterSegment, JSONPathFilter.Operator, JSONPathFilter.RangeIndexSegmentFilter, JSONPathFilter.Segment2Filter, JSONPathFilter.SegmentFilter, JSONPathFilter.StartsWithSegmentJSONPathSegment.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) java.lang.String |
fieldName |
(package private) java.lang.String[] |
fieldName2 |
(package private) long |
fieldNameNameHash |
(package private) long[] |
fieldNameNameHash2 |
(package private) java.util.function.Function |
function |
(package private) boolean |
includeArray |
| Constructor and Description |
|---|
NameFilter(java.lang.String fieldName,
long fieldNameNameHash) |
NameFilter(java.lang.String fieldName,
long fieldNameNameHash,
java.lang.String[] fieldName2,
long[] fieldNameNameHash2,
java.util.function.Function function) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(JSONReader jsonReader,
JSONPath.Context context) |
boolean |
apply(JSONPath.Context context,
java.lang.Object object) |
(package private) abstract boolean |
apply(java.lang.Object fieldValue) |
protected boolean |
applyNull() |
void |
eval(JSONPath.Context context) |
protected void |
excludeArray() |
protected java.lang.Object |
extractFieldValue(JSONPath.Context context,
java.lang.Object object) |
boolean |
remove(JSONPath.Context context) |
isAnd, setAndcontains, set, setCallback, setInt, setLongfinal java.lang.String fieldName
final long fieldNameNameHash
final java.lang.String[] fieldName2
final long[] fieldNameNameHash2
final java.util.function.Function function
boolean includeArray
public NameFilter(java.lang.String fieldName,
long fieldNameNameHash)
public NameFilter(java.lang.String fieldName,
long fieldNameNameHash,
java.lang.String[] fieldName2,
long[] fieldNameNameHash2,
java.util.function.Function function)
abstract boolean apply(java.lang.Object fieldValue)
public final void accept(JSONReader jsonReader, JSONPath.Context context)
accept in class JSONPathSegmentpublic boolean remove(JSONPath.Context context)
remove in class JSONPathSegmentpublic final void eval(JSONPath.Context context)
eval in class JSONPathSegmentprotected boolean applyNull()
protected java.lang.Object extractFieldValue(JSONPath.Context context, java.lang.Object object)
public boolean apply(JSONPath.Context context, java.lang.Object object)
apply in class JSONPathFilterprotected void excludeArray()