Class PredicatePathToken
- java.lang.Object
-
- com.jayway.jsonpath.internal.path.PathToken
-
- com.jayway.jsonpath.internal.path.PredicatePathToken
-
public class PredicatePathToken extends PathToken
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Collection<Predicate>
predicates
-
Constructor Summary
Constructors Constructor Description PredicatePathToken(Predicate filter)
PredicatePathToken(java.util.Collection<Predicate> predicates)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
accept(java.lang.Object obj, java.lang.Object root, Configuration configuration, EvaluationContextImpl evaluationContext)
void
evaluate(java.lang.String currentPath, PathRef ref, java.lang.Object model, EvaluationContextImpl ctx)
java.lang.String
getPathFragment()
boolean
isTokenDefinite()
-
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 Detail
-
predicates
private final java.util.Collection<Predicate> predicates
-
-
Method Detail
-
evaluate
public void evaluate(java.lang.String currentPath, PathRef ref, java.lang.Object model, EvaluationContextImpl ctx)
-
accept
public boolean accept(java.lang.Object obj, java.lang.Object root, Configuration configuration, EvaluationContextImpl evaluationContext)
-
getPathFragment
public java.lang.String getPathFragment()
- Specified by:
getPathFragment
in classPathToken
-
isTokenDefinite
public boolean isTokenDefinite()
- Specified by:
isTokenDefinite
in classPathToken
-
-