Code example for SimpleBindings

0
    protected AbstractSlingScriptEngine(ScriptEngineFactory scriptEngineFactory) {
        this.scriptEngineFactory = scriptEngineFactory;
    } 
 
    public Bindings createBindings() {
        return new SimpleBindings();
    } 
 
    public Object eval(String script, ScriptContext context) throws ScriptException {
        StringReader reader = new StringReader(script);
        return eval(reader, context);
    } 
 
    public ScriptEngineFactory getFactory() {
        return scriptEngineFactory;
    } 
 
} 
Contextual code suggestions in your IDE  Get Codota for Java