/** * Sets the script. Calling this method will clear any previous script * and runtime objects. * * @param script a Jiffle script * @throws JiffleException if the script is empty or {@code null} */ public final void setScript(String script) throws it.geosolutions.jaiext.jiffle.JiffleException { if (script == null || script.trim().length() == 0) { throw new it.geosolutions.jaiext.jiffle.JiffleException("script is empty !"); } clearCompiledObjects(); // add extra new line just in case last statement hits EOF theScript = script + "\n"; }
/** * Sets the script. Calling this method will clear any previous script * and runtime objects. * * @param script a Jiffle script * @throws JiffleException if the script is empty or {@code null} */ public final void setScript(String script) throws it.geosolutions.jaiext.jiffle.JiffleException { if (script == null || script.trim().length() == 0) { throw new it.geosolutions.jaiext.jiffle.JiffleException("script is empty !"); } clearCompiledObjects(); // add extra new line just in case last statement hits EOF theScript = script + "\n"; }