/** * Creates a runtime object based using the class specified by {@code model}. * <p> * The {@code Jiffle} object must be compiled before calling this method. * * @param model the {@link Jiffle.RuntimeModel} * @return the runtime object * @throws JiffleException if the script has not been compiled or if errors * occur in creating the runtime instance */ public JiffleRuntime getRuntimeInstance(Jiffle.RuntimeModel model) throws it.geosolutions.jaiext.jiffle.JiffleException { return createRuntimeInstance(model, getRuntimeBaseClass(model), false); }
/** * Creates a runtime object based using the class specified by {@code model}. * <p> * The {@code Jiffle} object must be compiled before calling this method. * * @param model the {@link Jiffle.RuntimeModel} * @return the runtime object * @throws JiffleException if the script has not been compiled or if errors * occur in creating the runtime instance */ public JiffleRuntime getRuntimeInstance(Jiffle.RuntimeModel model) throws it.geosolutions.jaiext.jiffle.JiffleException { return createRuntimeInstance(model, getRuntimeBaseClass(model), false); }
/** * Gets a copy of the Java source for the runtime class. The * script must have been compiled before calling this method. * * @param model the {@link Jiffle.RuntimeModel} * @param scriptInDocs whether to include the original Jiffle script * in the class javadocs * * @return source for the runtime class * @throws JiffleException if the script has not been compiled or if errors * occur in creating the runtime source code * */ public String getRuntimeSource(Jiffle.RuntimeModel model, boolean scriptInDocs) throws it.geosolutions.jaiext.jiffle.JiffleException { return createRuntimeSource(model, getRuntimeBaseClass(model).getName(), scriptInDocs); }
/** * Gets a copy of the Java source for the runtime class. The * script must have been compiled before calling this method. * * @param model the {@link Jiffle.RuntimeModel} * @param scriptInDocs whether to include the original Jiffle script * in the class javadocs * * @return source for the runtime class * @throws JiffleException if the script has not been compiled or if errors * occur in creating the runtime source code * */ public String getRuntimeSource(Jiffle.RuntimeModel model, boolean scriptInDocs) throws it.geosolutions.jaiext.jiffle.JiffleException { return createRuntimeSource(model, getRuntimeBaseClass(model).getName(), scriptInDocs); }