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: 198
Show newest version
package net.thisptr.jackson.jq.internal;

import java.util.List;

import net.thisptr.jackson.jq.JsonQuery;
import net.thisptr.jackson.jq.Scope;
import net.thisptr.jackson.jq.exception.JsonQueryException;

import com.fasterxml.jackson.databind.JsonNode;

public class FixedScopeQuery extends JsonQuery {
	public Scope scope;
	public JsonQuery query;

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

	@Override
	public List apply(final Scope _, final JsonNode in) throws JsonQueryException {
		return query.apply(scope, in);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy