Class JavaScriptFunction
- java.lang.Object
-
- org.neotropic.kuwaiba.modules.optional.reports.javascript.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 Summary
Constructors Constructor Description JavaScriptFunction(String functionName)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract String
getCodeBlock()
Mapping the statements and parameters of the JavaScript FunctionString
getFunctionName()
List<String>
getJavaScriptFunctionParameters()
void
setFunctionName(String functionName)
void
setJavaScriptFunctionParameters(List<String> parameters)
String
toString()
-
-
-
Constructor Detail
-
JavaScriptFunction
public JavaScriptFunction(String functionName)
-
-
Method Detail
-
getFunctionName
public String getFunctionName()
-
setFunctionName
public void setFunctionName(String functionName)
-
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.
-
-