Codota Logo
Jiffle.createRuntimeInstance
Code IndexAdd Codota to your IDE (free)

How to use
createRuntimeInstance
method
in
it.geosolutions.jaiext.jiffle.Jiffle

Best Java code snippets using it.geosolutions.jaiext.jiffle.Jiffle.createRuntimeInstance (Showing top 4 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
FileOutputStream f =
  • Codota IconFile file;new FileOutputStream(file)
  • Codota IconString name;new FileOutputStream(name)
  • Codota IconFile file;new FileOutputStream(file, true)
  • Smart code suggestions by Codota
}
origin: it.geosolutions.jaiext.jiffle/jt-jiffle-language

/**
 * 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);
}
origin: geosolutions-it/jai-ext

/**
 * 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);
}
origin: geosolutions-it/jai-ext

/**
 * Gets the runtime object for this script. 
 * <p>
 * The runtime object is an instance of {@link JiffleRuntime}. By default
 * it extends an abstract base class supplied JAI-tools: 
 * {@link it.geosolutions.jaiext.jiffle.runtime.AbstractDirectRuntime}
 * when using the direct runtiem model or 
 * {@link it.geosolutions.jaiext.jiffle.runtime.AbstractIndirectRuntime}
 * when using the indirect model. This method allows you to
 * specify a custom base class. The custom class must implement either 
 * {@link JiffleDirectRuntime} or {@link JiffleIndirectRuntime}.
 *
 * @param <T> the runtime base class type
 * @param baseClass the runtime base class
 *
 * @return the runtime object
 * @throws JiffleException  if the script has not been compiled or if errors
 *         occur in creating the runtime instance
 */
public <T extends JiffleRuntime> T getRuntimeInstance(Class<T> baseClass) throws
    it.geosolutions.jaiext.jiffle.JiffleException {
  RuntimeModel model = RuntimeModel.get(baseClass);
  if (model == null) {
    throw new it.geosolutions.jaiext.jiffle.JiffleException(baseClass.getName() +
        " does not implement a required Jiffle runtime interface");
  }
  return (T) createRuntimeInstance(model, baseClass, false);
}
origin: it.geosolutions.jaiext.jiffle/jt-jiffle-language

/**
 * Gets the runtime object for this script. 
 * <p>
 * The runtime object is an instance of {@link JiffleRuntime}. By default
 * it extends an abstract base class supplied JAI-tools: 
 * {@link it.geosolutions.jaiext.jiffle.runtime.AbstractDirectRuntime}
 * when using the direct runtiem model or 
 * {@link it.geosolutions.jaiext.jiffle.runtime.AbstractIndirectRuntime}
 * when using the indirect model. This method allows you to
 * specify a custom base class. The custom class must implement either 
 * {@link JiffleDirectRuntime} or {@link JiffleIndirectRuntime}.
 *
 * @param <T> the runtime base class type
 * @param baseClass the runtime base class
 *
 * @return the runtime object
 * @throws JiffleException  if the script has not been compiled or if errors
 *         occur in creating the runtime instance
 */
public <T extends JiffleRuntime> T getRuntimeInstance(Class<T> baseClass) throws
    it.geosolutions.jaiext.jiffle.JiffleException {
  RuntimeModel model = RuntimeModel.get(baseClass);
  if (model == null) {
    throw new it.geosolutions.jaiext.jiffle.JiffleException(baseClass.getName() +
        " does not implement a required Jiffle runtime interface");
  }
  return (T) createRuntimeInstance(model, baseClass, false);
}
it.geosolutions.jaiext.jiffleJifflecreateRuntimeInstance

Popular methods of Jiffle

  • <init>
    Creates a new instance by compiling the provided script. Using this constructor is equivalent to: J
  • compile
    Compiles the script into Java source for the runtime class.
  • getRuntimeInstance
    Gets the runtime object for this script. The runtime object is an instance of JiffleRuntime. By defa
  • setImageParams
    Sets the image parameters. These define which variables in the script refer to images and their type
  • setScript
    Sets the script. Calling this method will clear any previous script and runtime objects.
  • isCompiled
    Tests whether the script has been compiled successfully.
  • getReadPositions
    A utility method returning the source positions used in a given script
  • getRuntimeSource
    Gets a copy of the Java source for the runtime class. The script must have been compiled before call
  • clearCompiledObjects
    Clears all compiler and runtime objects.
  • createRuntimeSource
  • getImageParams
    Gets the current image parameters. The parameters are returned as an unmodifiable map.
  • getName
    Gets the name assigned to this object. This will either be the default name or one assigned by the c
  • getImageParams,
  • getName,
  • getRuntimeBaseClass,
  • getScript,
  • getScriptImageParams,
  • init,
  • parseScript,
  • reportMessages,
  • setName

Popular in Java

  • Start an intent from android
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • putExtra (Intent)
  • getApplicationContext (Context)
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • URLConnection (java.net)
    The abstract class URLConnection is the superclass of all classes that represent a communications li
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now