All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.thisptr.jackson.jq.internal.FixedScopeQuery Maven / Gradle / Ivy

There is a newer version: 1.2.0
Show newest version
package net.thisptr.jackson.jq.internal;

import com.fasterxml.jackson.databind.JsonNode;

import net.thisptr.jackson.jq.Expression;
import net.thisptr.jackson.jq.PathOutput;
import net.thisptr.jackson.jq.Scope;
import net.thisptr.jackson.jq.exception.JsonQueryException;
import net.thisptr.jackson.jq.path.Path;

public class FixedScopeQuery implements Expression {
	public Scope scope;
	public Expression query;

	public FixedScopeQuery(final Scope scope, final Expression query) {
		this.scope = scope;
		this.query = query;
	}

	@Override
	public void apply(Scope unused, JsonNode in, Path path, PathOutput output, boolean requirePath) throws JsonQueryException {
		query.apply(scope, in, path, output, requirePath);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy