public class GroovyCodeFactory extends AbstractCodeFactory
ICodeFactory.Parameter| Modifier and Type | Field and Description |
|---|---|
static List<String> |
RESERVED_KEYWORDS |
LINE_DELIMITERTRACE_MODULE_WRAPPER| Constructor and Description |
|---|
GroovyCodeFactory() |
| Modifier and Type | Method and Description |
|---|---|
String |
classInstantiation(Class<?> clazz,
String[] parameters)
Create code to instantiate a java class.
|
String |
createFunctionWrapper(IEnvironment environment,
String moduleVariable,
Method method)
Create code for a wrapper function in the global namespace of the script engine.
|
String |
getSaveVariableName(String variableName)
Converts a given string to a save variable name for the target language.
|
createCommentedString, createFunctionCall, createKeywordHeader, createWrapper, getDefaultValue, getMethodAliases, getMethodNames, getPostExecutionCode, getPreExecutionCodepublic String classInstantiation(Class<?> clazz, String[] parameters)
ICodeFactoryclazz - class to instantiateparameters - parameters used for class instantiationpublic String getSaveVariableName(String variableName)
ICodeFactoryvariableName - variable name candidatepublic String createFunctionWrapper(IEnvironment environment, String moduleVariable, Method method)
AbstractCodeFactoryenvironment - environment instancemoduleVariable - function name to be usedmethod - method to refer to