Class ObjectMatcher
- java.lang.Object
-
- net.thisptr.jackson.jq.internal.tree.matcher.matchers.ObjectMatcher
-
- All Implemented Interfaces:
PatternMatcher
public class ObjectMatcher extends java.lang.Object implements PatternMatcher
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ObjectMatcher.FieldMatcher
-
Nested classes/interfaces inherited from interface net.thisptr.jackson.jq.internal.tree.matcher.PatternMatcher
PatternMatcher.MatchOutput, PatternMatcher.MatchWithPath
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<ObjectMatcher.FieldMatcher>
matchers
-
Constructor Summary
Constructors Constructor Description ObjectMatcher(java.util.List<ObjectMatcher.FieldMatcher> matchers)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
match(Scope scope, com.fasterxml.jackson.databind.JsonNode in, Functional.Consumer<java.util.List<Pair<java.lang.String,com.fasterxml.jackson.databind.JsonNode>>> out, java.util.Stack<Pair<java.lang.String,com.fasterxml.jackson.databind.JsonNode>> accumulate)
void
matchWithPath(Scope scope, com.fasterxml.jackson.databind.JsonNode in, Path path, PatternMatcher.MatchOutput output, java.util.Stack<PatternMatcher.MatchWithPath> accumulate)
private void
recursive(Scope scope, com.fasterxml.jackson.databind.JsonNode in, Functional.Consumer<java.util.List<Pair<java.lang.String,com.fasterxml.jackson.databind.JsonNode>>> out, java.util.Stack<Pair<java.lang.String,com.fasterxml.jackson.databind.JsonNode>> accumulate, int index)
private void
recursiveWithPath(Scope scope, com.fasterxml.jackson.databind.JsonNode in, Path inpath, PatternMatcher.MatchOutput output, java.util.Stack<PatternMatcher.MatchWithPath> accumulate, int index)
java.lang.String
toString()
-
-
-
Field Detail
-
matchers
private java.util.List<ObjectMatcher.FieldMatcher> matchers
-
-
Constructor Detail
-
ObjectMatcher
public ObjectMatcher(java.util.List<ObjectMatcher.FieldMatcher> matchers)
-
-
Method Detail
-
recursive
private void recursive(Scope scope, com.fasterxml.jackson.databind.JsonNode in, Functional.Consumer<java.util.List<Pair<java.lang.String,com.fasterxml.jackson.databind.JsonNode>>> out, java.util.Stack<Pair<java.lang.String,com.fasterxml.jackson.databind.JsonNode>> accumulate, int index) throws JsonQueryException
- Throws:
JsonQueryException
-
recursiveWithPath
private void recursiveWithPath(Scope scope, com.fasterxml.jackson.databind.JsonNode in, Path inpath, PatternMatcher.MatchOutput output, java.util.Stack<PatternMatcher.MatchWithPath> accumulate, int index) throws JsonQueryException
- Throws:
JsonQueryException
-
match
public void match(Scope scope, com.fasterxml.jackson.databind.JsonNode in, Functional.Consumer<java.util.List<Pair<java.lang.String,com.fasterxml.jackson.databind.JsonNode>>> out, java.util.Stack<Pair<java.lang.String,com.fasterxml.jackson.databind.JsonNode>> accumulate) throws JsonQueryException
- Specified by:
match
in interfacePatternMatcher
- Throws:
JsonQueryException
-
matchWithPath
public void matchWithPath(Scope scope, com.fasterxml.jackson.databind.JsonNode in, Path path, PatternMatcher.MatchOutput output, java.util.Stack<PatternMatcher.MatchWithPath> accumulate) throws JsonQueryException
- Specified by:
matchWithPath
in interfacePatternMatcher
- Throws:
JsonQueryException
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-