public interface EPCompiler
Modifier and Type | Method and Description |
---|---|
EPCompiled |
compile(Module module,
CompilerArguments arguments)
Compiles a module object model and returns the byte code for deployment into a runtime.
|
EPCompiled |
compile(java.lang.String epl,
CompilerArguments arguments)
Compiles EPL and returns the byte code for deployment into a runtime.
|
EPCompiled |
compileQuery(EPStatementObjectModel fireAndForgetEPLQueryModel,
CompilerArguments arguments)
Compiles fire-and-forget query object model for execution by the runtime.
|
EPCompiled |
compileQuery(java.lang.String fireAndForgetEPLQuery,
CompilerArguments arguments)
Compiles a single fire-and-forget query for execution by the runtime.
|
EPStatementObjectModel |
eplToModel(java.lang.String epl,
Configuration configuration)
Parse the single-statement EPL and return a statement object model.
|
Module |
parseModule(java.lang.String eplModuleText)
Parse the module text returning the module object model.
|
Module |
readModule(java.io.File file)
Read the module by reading the text file and return the module.
|
Module |
readModule(java.io.InputStream stream,
java.lang.String moduleUri)
Read the input stream and return the module.
|
Module |
readModule(java.lang.String resource,
java.lang.ClassLoader classLoader)
Read the resource by opening from classpath and return the module.
|
Module |
readModule(java.net.URL url)
Read the module by reading from the URL provided and return the module.
|
void |
syntaxValidate(Module module,
CompilerArguments arguments)
Validate the syntax of the module.
|
EPCompiled compile(java.lang.String epl, CompilerArguments arguments) throws EPCompileException
Use semicolon(;) to separate multiple statements in a module.
epl
- epl to compilearguments
- compiler argumentsEPCompileException
- when the compilation failedEPCompiled compile(Module module, CompilerArguments arguments) throws EPCompileException
module
- module object to compilearguments
- compiler argumentsEPCompileException
- when the compilation failedEPCompiled compileQuery(java.lang.String fireAndForgetEPLQuery, CompilerArguments arguments) throws EPCompileException
fireAndForgetEPLQuery
- fire-and-forget query to compilearguments
- compiler argumentsEPCompileException
- when the compilation failedEPCompiled compileQuery(EPStatementObjectModel fireAndForgetEPLQueryModel, CompilerArguments arguments) throws EPCompileException
fireAndForgetEPLQueryModel
- fire-and-forget query to compilearguments
- compiler argumentsEPCompileException
- when the compilation failedModule parseModule(java.lang.String eplModuleText) throws java.io.IOException, ParseException
eplModuleText
- to parsejava.io.IOException
- when the parser failedParseException
- when parsing of the module failedEPStatementObjectModel eplToModel(java.lang.String epl, Configuration configuration) throws EPCompileException
epl
- to parseconfiguration
- a configuration object when availableEPCompileException
- when the EPL could not be parsedvoid syntaxValidate(Module module, CompilerArguments arguments) throws EPCompileException
module
- to validatearguments
- compiler argumentsEPCompileException
- when the EPL could not be parsedModule readModule(java.io.InputStream stream, java.lang.String moduleUri) throws java.io.IOException, ParseException
stream
- to readmoduleUri
- uri of the modulejava.io.IOException
- when the io operation failedParseException
- when parsing of the module failedModule readModule(java.lang.String resource, java.lang.ClassLoader classLoader) throws java.io.IOException, ParseException
resource
- name of the classpath resourceclassLoader
- classloaderjava.io.IOException
- when the resource could not be readParseException
- when parsing of the module failedModule readModule(java.io.File file) throws java.io.IOException, ParseException
file
- the file to readjava.io.IOException
- when the file could not be readParseException
- when parsing of the module failedModule readModule(java.net.URL url) throws java.io.IOException, ParseException
url
- the URL to readjava.io.IOException
- when the url input stream could not be readParseException
- when parsing of the module failed