public class ScriptImpl extends Object implements Script, Serializable
Script.ModulesType| Constructor and Description |
|---|
ScriptImpl(String sourceCode) |
ScriptImpl(String sourceCode,
String[] modules,
Script.ModulesType modulesType) |
| Modifier and Type | Method and Description |
|---|---|
String[] |
getModules()
Returns An array of modules which the Script depends on.
|
Script.ModulesType |
getModulesType()
Returns The
Script.ModulesType of the Script. |
String |
getSourceCode()
Returns The Script's text.
|
public ScriptImpl(String sourceCode)
public ScriptImpl(String sourceCode, String[] modules, Script.ModulesType modulesType)
public String[] getModules()
ScriptgetModules in interface Scriptpublic Script.ModulesType getModulesType()
ScriptScript.ModulesType of the Script.getModulesType in interface Scriptpublic String getSourceCode()
ScriptgetSourceCode in interface ScriptCopyright © 2016 Liferay, Inc.. All rights reserved.