com.github.siwenyan.query.JsQuery Maven / Gradle / Ivy
package com.github.siwenyan.query;
import com.github.siwenyan.common.EasyJavascript;
/**
* QueryBase implementation to support execute javascript
*/
public class JsQuery extends QueryBase {
@Override
public Object query(String javascript, Object... params) {
try {
return EasyJavascript.evaluateJavascript(javascript);
} catch (Exception e) {
return null;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy