
cool.taomu.box.storage.indexed.abs.AbsIndexed Maven / Gradle / Ivy
package cool.taomu.box.storage.indexed.abs;
import cool.taomu.box.storage.indexed.inter.IIndexed;
import cool.taomu.box.storage.indexed.rhino.JsRhinoScript;
@SuppressWarnings("all")
public abstract class AbsIndexed implements IIndexed {
protected Object getKeyPath(final String key, final String result) {
JsRhinoScript js = new JsRhinoScript();
js.loaderScript(String.format("function getKeyPath(key) { return JSON.parse(\'%s\')[key];}", result));
return js.invoke("getKeyPath", key);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy