Class FieldAccess
- java.lang.Object
-
- net.thisptr.jackson.jq.internal.tree.fieldaccess.FieldAccess
-
- All Implemented Interfaces:
Expression
- Direct Known Subclasses:
BracketExtractFieldAccess
,BracketFieldAccess
,IdentifierFieldAccess
,StringFieldAccess
public abstract class FieldAccess extends java.lang.Object implements Expression
-
-
Field Summary
Fields Modifier and Type Field Description private static com.fasterxml.jackson.databind.ObjectMapper
MAPPER
protected boolean
permissive
protected Expression
target
-
Constructor Summary
Constructors Constructor Description FieldAccess(Expression target, boolean permissive)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static void
emitAllPath(boolean permissive, com.fasterxml.jackson.databind.JsonNode pobj, Path ppath, PathOutput output, boolean requirePath)
protected static void
emitArrayIndexOfPath(boolean permissive, com.fasterxml.jackson.databind.JsonNode subseqToLookFor, com.fasterxml.jackson.databind.JsonNode pobj, Path ppath, PathOutput output, boolean requirePath)
protected static void
emitArrayIndexPath(boolean permissive, com.fasterxml.jackson.databind.JsonNode index, com.fasterxml.jackson.databind.JsonNode pobj, Path ppath, PathOutput output, boolean requirePath)
protected static void
emitArrayRangeIndexPath(boolean permissive, com.fasterxml.jackson.databind.JsonNode start, com.fasterxml.jackson.databind.JsonNode end, com.fasterxml.jackson.databind.JsonNode pobj, Path ppath, PathOutput output, boolean requirePath)
protected static void
emitObjectFieldPath(boolean permissive, java.lang.String key, com.fasterxml.jackson.databind.JsonNode pobj, Path ppath, PathOutput output, boolean requirePath)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.thisptr.jackson.jq.Expression
apply, apply
-
-
-
-
Field Detail
-
target
protected final Expression target
-
permissive
protected final boolean permissive
-
MAPPER
private static final com.fasterxml.jackson.databind.ObjectMapper MAPPER
-
-
Constructor Detail
-
FieldAccess
public FieldAccess(Expression target, boolean permissive)
-
-
Method Detail
-
emitAllPath
protected static void emitAllPath(boolean permissive, com.fasterxml.jackson.databind.JsonNode pobj, Path ppath, PathOutput output, boolean requirePath) throws JsonQueryException
- Throws:
JsonQueryException
-
emitObjectFieldPath
protected static void emitObjectFieldPath(boolean permissive, java.lang.String key, com.fasterxml.jackson.databind.JsonNode pobj, Path ppath, PathOutput output, boolean requirePath) throws JsonQueryException
- Throws:
JsonQueryException
-
emitArrayIndexPath
protected static void emitArrayIndexPath(boolean permissive, com.fasterxml.jackson.databind.JsonNode index, com.fasterxml.jackson.databind.JsonNode pobj, Path ppath, PathOutput output, boolean requirePath) throws JsonQueryException
- Throws:
JsonQueryException
-
emitArrayIndexOfPath
protected static void emitArrayIndexOfPath(boolean permissive, com.fasterxml.jackson.databind.JsonNode subseqToLookFor, com.fasterxml.jackson.databind.JsonNode pobj, Path ppath, PathOutput output, boolean requirePath) throws JsonQueryException
- Throws:
JsonQueryException
-
emitArrayRangeIndexPath
protected static void emitArrayRangeIndexPath(boolean permissive, com.fasterxml.jackson.databind.JsonNode start, com.fasterxml.jackson.databind.JsonNode end, com.fasterxml.jackson.databind.JsonNode pobj, Path ppath, PathOutput output, boolean requirePath) throws JsonQueryException
- Throws:
JsonQueryException
-
-