Class JavaScriptFunction

  • Direct Known Subclasses:
    DrawGChartFunction

    public abstract class JavaScriptFunction
    extends Object
    Wrapper to a JavaScrip Function.
    Author:
    Johny Andres Ortega Ruiz <johny.ortega@kuwaiba.org>
    • Constructor Detail

      • JavaScriptFunction

        public JavaScriptFunction​(String functionName)
    • Method Detail

      • getFunctionName

        public String getFunctionName()
      • setFunctionName

        public void setFunctionName​(String functionName)
      • getJavaScriptFunctionParameters

        public List<String> getJavaScriptFunctionParameters()
      • setJavaScriptFunctionParameters

        public void setJavaScriptFunctionParameters​(List<String> parameters)
      • getCodeBlock

        public abstract String getCodeBlock()
                                     throws Exception
        Mapping the statements and parameters of the JavaScript Function
        Returns:
        code block inside curly brackets {...}
        Throws:
        Exception - Throw to notify to some error when process the code block of the function, example: data malformed.