Example usage for jdk.nashorn.api.scripting Formatter subclass-usage

List of usage examples for jdk.nashorn.api.scripting Formatter subclass-usage

Introduction

In this page you can find the example usage for jdk.nashorn.api.scripting Formatter subclass-usage.

Usage

From source file org.siphon.d2js.D2jsFormatter.java

public class D2jsFormatter extends Formatter {

    @Override
    public void formatQueryResult(JsspWriter out, Object queryResult, String message) throws Exception {
        if (!out.isDirty()) {
            if (JsTypeUtil.isNull(queryResult)) {

From source file org.siphon.db2js.Db2jsFormatter.java

public class Db2jsFormatter extends Formatter {

    @Override
    public void formatQueryResult(Object queryResult, String message, JsEngineHandlerContext engineContext)
            throws Exception {
        JsspWriter out = (JsspWriter) engineContext.getScriptEngine().get("out");