Class ValueNode.PathNode
- java.lang.Object
-
- com.jayway.jsonpath.internal.filter.ValueNode
-
- com.jayway.jsonpath.internal.filter.ValueNode.PathNode
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.jayway.jsonpath.internal.filter.ValueNode
ValueNode.BooleanNode, ValueNode.ClassNode, ValueNode.JsonNode, ValueNode.NullNode, ValueNode.NumberNode, ValueNode.PathNode, ValueNode.PatternNode, ValueNode.PredicateNode, ValueNode.StringNode, ValueNode.UndefinedNode, ValueNode.ValueListNode
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
existsCheck
private static org.slf4j.Logger
logger
private Path
path
private boolean
shouldExist
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ValueNode.PathNode
asExistsCheck(boolean shouldExist)
ValueNode.PathNode
asPathNode()
ValueNode
evaluate(Predicate.PredicateContext ctx)
Path
getPath()
boolean
isExistsCheck()
boolean
isPathNode()
boolean
shouldExists()
java.lang.String
toString()
java.lang.Class<?>
type(Predicate.PredicateContext ctx)
-
Methods inherited from class com.jayway.jsonpath.internal.filter.ValueNode
asBooleanNode, asClassNode, asJsonNode, asNullNode, asNumberNode, asPatternNode, asPredicateNode, asStringNode, asUndefinedNode, asValueListNode, createBooleanNode, createClassNode, createJsonNode, createJsonNode, createNullNode, createNumberNode, createPathNode, createPathNode, createPatternNode, createPatternNode, createStringNode, createUndefinedNode, isBooleanNode, isClassNode, isJsonNode, isNullNode, isNumberNode, isPatternNode, isPredicateNode, isStringNode, isUndefinedNode, isValueListNode, toValueNode
-
-
-
-
Field Detail
-
logger
private static final org.slf4j.Logger logger
-
path
private final Path path
-
existsCheck
private final boolean existsCheck
-
shouldExist
private final boolean shouldExist
-
-
Method Detail
-
getPath
public Path getPath()
-
isExistsCheck
public boolean isExistsCheck()
-
shouldExists
public boolean shouldExists()
-
type
public java.lang.Class<?> type(Predicate.PredicateContext ctx)
-
isPathNode
public boolean isPathNode()
- Overrides:
isPathNode
in classValueNode
-
asPathNode
public ValueNode.PathNode asPathNode()
- Overrides:
asPathNode
in classValueNode
-
asExistsCheck
public ValueNode.PathNode asExistsCheck(boolean shouldExist)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
evaluate
public ValueNode evaluate(Predicate.PredicateContext ctx)
-
-