com.javanut.json.decode.JSONPath Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pronghorn-pipes Show documentation
Show all versions of pronghorn-pipes Show documentation
Ring buffer based queuing utility for applications that require high performance and/or a small
footprint. Well suited for embedded and stream based processing.
package com.javanut.json.decode;
import com.javanut.json.JSONExtractorActive;
public abstract class JSONPath {
private JSONExtractorActive extractor;
JSONPath(JSONExtractorActive extractor) {
this.extractor = extractor;
}
public P asField(String extractionPath, String name) {
extractor.completePath(extractionPath, name);
extractor = null;
return pathEnded();
}
public P asField(String extractionPath, String name, Object object) {
extractor.completePath(extractionPath, name, object);
extractor = null;
return pathEnded();
}
public > P asField(String extractionPath, T field) {
extractor.completePath(extractionPath, field.name(), field);
extractor = null;
return pathEnded();
}
abstract P pathEnded();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy