Class Module
java.lang.Object
com.espertech.esper.common.client.module.Module
- All Implemented Interfaces:
Serializable
Represent a deployment unit consisting of deployment declarative information (module name, uses and imports)
as well as EPL statements represented by
ModuleItem
. May have an additional user object and archive name
and uri pointing to the module source attached.
The module URI gets initialized with the filename, resource or URL being read, however may be overridden and has not further meaning to the deployment.
The archive name and user object are opportunities to attach additional deployment information.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the name of the archive this module originated from, or null if not applicable.Returns the imports defined by the module.getItems()
Returns a list of statements (some may be comments only) that make up the module.Returns module text.Returns the optional user object that may be attached to the module.getName()
Returns the module name, if provided.getUri()
Returns the module URI if provided.getUses()
Returns the dependencies the module may have on other modules.void
setArchiveName
(String archiveName) Set the name of the archive this module originated from, or null if not applicable.void
setImports
(Set<String> imports) Sets the imports defined by the module.void
setItems
(List<ModuleItem> items) Sets a list of statements (some may be comments only) that make up the module.void
setModuleText
(String moduleText) Sets module text.void
setModuleUserObjectCompileTime
(Serializable moduleUserObjectCompileTime) Sets an optional user object that may be attached to the module.void
Sets the module name or null if none provided.void
Sets the module URI or null if none provided.void
Sets the dependencies the module may have on other modules.toString()
-
Constructor Details
-
Module
public Module(String name, String uri, Set<String> uses, Set<String> imports, List<ModuleItem> items, String moduleText) Ctor.- Parameters:
name
- module nameuri
- module uriuses
- names of modules that this module depends onimports
- the Java class importsitems
- EPL statementsmoduleText
- text of module
-
Module
public Module()Ctor.
-
-
Method Details
-
getArchiveName
Returns the name of the archive this module originated from, or null if not applicable.- Returns:
- archive name
-
setArchiveName
Set the name of the archive this module originated from, or null if not applicable.- Parameters:
archiveName
- archive name
-
getModuleUserObjectCompileTime
Returns the optional user object that may be attached to the module.- Returns:
- user object
-
setModuleUserObjectCompileTime
Sets an optional user object that may be attached to the module.- Parameters:
moduleUserObjectCompileTime
- user object
-
getName
Returns the module name, if provided.- Returns:
- module name
-
setName
Sets the module name or null if none provided.- Parameters:
name
- module name
-
getUri
Returns the module URI if provided.- Returns:
- module URI
-
setUri
Sets the module URI or null if none provided.- Parameters:
uri
- of module
-
getUses
Returns the dependencies the module may have on other modules.- Returns:
- module dependencies
-
setUses
Sets the dependencies the module may have on other modules.- Parameters:
uses
- module dependencies
-
getItems
Returns a list of statements (some may be comments only) that make up the module.- Returns:
- statements
-
setItems
Sets a list of statements (some may be comments only) that make up the module.- Parameters:
items
- statements
-
getImports
Returns the imports defined by the module.- Returns:
- module imports
-
setImports
Sets the imports defined by the module.- Parameters:
imports
- module imports
-
getModuleText
Returns module text.- Returns:
- text
-
setModuleText
Sets module text.- Parameters:
moduleText
- text to set
-
toString
-