Class PredicatePathToken
java.lang.Object
com.jayway.jsonpath.internal.path.PathToken
com.jayway.jsonpath.internal.path.PredicatePathToken
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPredicatePathToken
(Predicate filter) PredicatePathToken
(Collection<Predicate> predicates) -
Method Summary
Modifier and TypeMethodDescriptionboolean
accept
(Object obj, Object root, Configuration configuration, EvaluationContextImpl evaluationContext) void
evaluate
(String currentPath, PathRef ref, Object model, EvaluationContextImpl ctx) boolean
Methods inherited from class com.jayway.jsonpath.internal.path.PathToken
appendTailToken, equals, getTokenCount, handleArrayIndex, handleObjectProperty, hashCode, invoke, isLeaf, isPathDefinite, isRoot, isUpstreamDefinite, next, prev, toString
-
Field Details
-
predicates
-
-
Constructor Details
-
PredicatePathToken
PredicatePathToken(Predicate filter) -
PredicatePathToken
PredicatePathToken(Collection<Predicate> predicates)
-
-
Method Details
-
evaluate
-
accept
public boolean accept(Object obj, Object root, Configuration configuration, EvaluationContextImpl evaluationContext) -
getPathFragment
- Specified by:
getPathFragment
in classPathToken
-
isTokenDefinite
public boolean isTokenDefinite()- Specified by:
isTokenDefinite
in classPathToken
-