Class CompiledPath
java.lang.Object
com.jayway.jsonpath.internal.path.CompiledPath
- All Implemented Interfaces:
Path
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanprivate static final org.slf4j.Loggerprivate final RootPathToken -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionevaluate(Object document, Object rootDocument, Configuration configuration) Evaluates this pathevaluate(Object document, Object rootDocument, Configuration configuration, boolean forUpdate) Evaluates this pathbooleanbooleanbooleantoString()
-
Field Details
-
logger
private static final org.slf4j.Logger logger -
root
-
isRootPath
private final boolean isRootPath
-
-
Constructor Details
-
CompiledPath
-
-
Method Details
-
isRootPath
public boolean isRootPath()- Specified by:
isRootPathin interfacePath- Returns:
- true id this path is starts with '$' and false if the path starts with '@'
-
evaluate
public EvaluationContext evaluate(Object document, Object rootDocument, Configuration configuration, boolean forUpdate) Description copied from interface:PathEvaluates this path- Specified by:
evaluatein interfacePath- Parameters:
document- the json document to apply the path onrootDocument- the root json document that started this evaluationconfiguration- configuration to useforUpdate- is this a read or a write operation- Returns:
- EvaluationContext containing results of evaluation
-
evaluate
public EvaluationContext evaluate(Object document, Object rootDocument, Configuration configuration) Description copied from interface:PathEvaluates this path -
isDefinite
public boolean isDefinite()- Specified by:
isDefinitein interfacePath- Returns:
- true id this path is definite
-
isFunctionPath
public boolean isFunctionPath()- Specified by:
isFunctionPathin interfacePath- Returns:
- true id this path is a function
-
toString
-