Tabnine Logo
Jiffle.getRuntimeSource
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: it.geosolutions.jaiext.jiffle/jt-jiffle-language

/**
 * Gets a copy of the Java source for the runtime class. The 
 * script must have been compiled before calling this method.
 * 
 * @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(boolean scriptInDocs)
    throws it.geosolutions.jaiext.jiffle.JiffleException {
  return getRuntimeSource(RuntimeModel.DIRECT, scriptInDocs);
}
  
origin: geosolutions-it/jai-ext

/**
 * Gets a copy of the Java source for the runtime class. The 
 * script must have been compiled before calling this method.
 * 
 * @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(boolean scriptInDocs)
    throws it.geosolutions.jaiext.jiffle.JiffleException {
  return getRuntimeSource(RuntimeModel.DIRECT, scriptInDocs);
}
  
origin: geosolutions-it/jai-ext

/**
 * Gets the Java run-time class code generated from the compiled script.
 *
 * @return the run-time source code
 *
 * @throws JiffleException if the script has not been set yet or if
 *         compilation errors occur
 */
public String getRuntimeSource() throws JiffleException {
  if (script == null) {
    throw new IllegalStateException("Jiffle script has not been set yet");
  }
  
  Jiffle jiffle = new Jiffle(script, imageParams);
  return jiffle.getRuntimeSource(Jiffle.RuntimeModel.DIRECT, true);
}
origin: it.geosolutions.jaiext.jiffle/jt-jiffle-language

/**
 * Gets the Java run-time class code generated from the compiled script.
 *
 * @return the run-time source code
 *
 * @throws JiffleException if the script has not been set yet or if
 *         compilation errors occur
 */
public String getRuntimeSource() throws JiffleException {
  if (script == null) {
    throw new IllegalStateException("Jiffle script has not been set yet");
  }
  
  Jiffle jiffle = new Jiffle(script, imageParams);
  return jiffle.getRuntimeSource(Jiffle.RuntimeModel.DIRECT, true);
}
origin: geosolutions-it/jai-ext

public void getSourceFromJiffleObject(String script) throws JiffleException {
  Jiffle jiffle = new Jiffle();
  jiffle.setScript(script);
  
  // You have to compile the script before getting the runtime
  // source otherwise an Exception will be thrown
  jiffle.compile();
  
  // Get the Java source. The boolean argument specifies that we
  // want the input script copied into the class javadocs
  String runtimeSource = jiffle.getRuntimeSource(true);
}
// docs end getSourceFromJiffleObject
it.geosolutions.jaiext.jiffleJifflegetRuntimeSource

Javadoc

Gets a copy of the Java source for the runtime class. The script must have been compiled before calling this method.

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
  • clearCompiledObjects
    Clears all compiler and runtime objects.
  • createRuntimeInstance
  • 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

  • Finding current android device location
  • setContentView (Activity)
  • runOnUiThread (Activity)
  • onRequestPermissionsResult (Fragment)
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now