Class CompilerOptions
java.lang.Object
com.espertech.esper.compiler.client.CompilerOptions
Callbacks and optional values for the compiler to determine modifiers, statement name,
statement user object, module name and module-uses.
All values are optional and can be null.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the callback that determines the access modifier of a given context.Returns the callback that determines the access modifier of a given event typeReturns the callback that determines the access modifier of a given declared expression.Returns the callback that determines the access modifier of a given inlined-class.Returns the callback that determines the access modifier of a given named window.Returns the callback that determines the access modifier of a given script.Returns the callback that determines the access modifier of a given declared expression.Returns the callback that determines the access modifier of a given variable.Returns the callback that determines whether the event type is visible in the event bus i.e.Experimental API: Returns the provider of the compiler to useReturns the classback for inlined-class compilation wherein the callback receives class outputReturns the callback that determines the module name.Returns the callback that determines the module uses.Returns a cache, or null if not using a cache, that retains for eachEPCompiled
the EPL objects that theEPCompiled
provides.Returns the callback that determines the statement nameReturns the callback that determines a compiler-time statement user object for a statement.For internal-use-only and subject-to-change-between-versions, state-management settingssetAccessModifierContext
(AccessModifierContextOption accessModifierContext) Sets the callback that determines the access modifier of a given context.setAccessModifierEventType
(AccessModifierEventTypeOption accessModifierEventType) Sets the callback that determines the access modifier of a given event type.setAccessModifierExpression
(AccessModifierExpressionOption accessModifierExpression) Sets the callback that determines the access modifier of a given declared expression.setAccessModifierInlinedClass
(AccessModifierInlinedClassOption accessModifierInlinedClass) Sets the callback that determines the access modifier of a given inlined-class.setAccessModifierNamedWindow
(AccessModifierNamedWindowOption accessModifierNamedWindow) Sets the callback that determines the access modifier of a given named window.setAccessModifierScript
(AccessModifierScriptOption accessModifierScript) Sets the callback that determines the access modifier of a given script.setAccessModifierTable
(AccessModifierTableOption accessModifierTable) Returns the callback that determines the access modifier of a given table.setAccessModifierVariable
(AccessModifierVariableOption accessModifierVariable) Sets the callback that determines the access modifier of a given variable.setBusModifierEventType
(BusModifierEventTypeOption busModifierEventType) Sets the callback that determines whether the event type is visible in the event bus i.e.void
setCompilerHook
(CompilerHookOption compilerHook) Experimental API: Sets the provider of the compiler to usevoid
setInlinedClassInspection
(InlinedClassInspectionOption inlinedClassInspection) Sets the classback for inlined-class compilation wherein the callback receives class outputsetModuleName
(ModuleNameOption moduleName) Sets the callback that determines the module name.setModuleUses
(ModuleUsesOption moduleUses) Sets the callback that determines the module uses.void
setPathCache
(CompilerPathCache pathCache) Sets the cache, or null if not using a cache, that retains for eachEPCompiled
the EPL objects that theEPCompiled
provides.setStatementName
(StatementNameOption statementName) Sets the callback that determines the statement namesetStatementUserObject
(StatementUserObjectOption statementUserObject) Sets the callback that determines a compiler-time statement user object for a statement.void
setStateMgmtSetting
(StateMgmtSettingOption stateMgmtSetting) For internal-use-only and subject-to-change-between-versions, state-management settings
-
Constructor Details
-
CompilerOptions
public CompilerOptions()
-
-
Method Details
-
getAccessModifierEventType
Returns the callback that determines the access modifier of a given event type- Returns:
- callback returning an access modifier for an event type
-
setAccessModifierEventType
public CompilerOptions setAccessModifierEventType(AccessModifierEventTypeOption accessModifierEventType) Sets the callback that determines the access modifier of a given event type.- Parameters:
accessModifierEventType
- callback returning an access modifier for an event type- Returns:
- itself
-
getStatementUserObject
Returns the callback that determines a compiler-time statement user object for a statement. The user object is available from EPStatement by methodgetUserObjectCompileTime
.- Returns:
- callback to set a compile-time statement user object
-
setStatementUserObject
Sets the callback that determines a compiler-time statement user object for a statement. The user object is available from EPStatement by methodgetUserObjectCompileTime
.- Parameters:
statementUserObject
- callback to set a compile-time statement user object- Returns:
- itself
-
setBusModifierEventType
Sets the callback that determines whether the event type is visible in the event bus i.e. available for use with send-event.- Parameters:
busModifierEventType
- callback to set the event type bus modifier value- Returns:
- itself
-
getBusModifierEventType
Returns the callback that determines whether the event type is visible in the event bus i.e. available for use with send-event.- Returns:
- callback to set the event type bus modifier value
-
getAccessModifierContext
Returns the callback that determines the access modifier of a given context.- Returns:
- callback returning an access modifier for a context
-
setAccessModifierContext
Sets the callback that determines the access modifier of a given context.- Parameters:
accessModifierContext
- callback returning an access modifier for a context- Returns:
- itself
-
getAccessModifierVariable
Returns the callback that determines the access modifier of a given variable.- Returns:
- callback returning an access modifier for a variable
-
setAccessModifierVariable
public CompilerOptions setAccessModifierVariable(AccessModifierVariableOption accessModifierVariable) Sets the callback that determines the access modifier of a given variable.- Parameters:
accessModifierVariable
- callback returning an access modifier for a variable- Returns:
- itself
-
getAccessModifierInlinedClass
Returns the callback that determines the access modifier of a given inlined-class.- Returns:
- callback returning an access modifier for an inlined-class
-
setAccessModifierInlinedClass
public CompilerOptions setAccessModifierInlinedClass(AccessModifierInlinedClassOption accessModifierInlinedClass) Sets the callback that determines the access modifier of a given inlined-class.- Parameters:
accessModifierInlinedClass
- callback returning an access modifier for an inlined-class- Returns:
- itself
-
getAccessModifierExpression
Returns the callback that determines the access modifier of a given declared expression.- Returns:
- callback returning an access modifier for a declared expression
-
setAccessModifierExpression
public CompilerOptions setAccessModifierExpression(AccessModifierExpressionOption accessModifierExpression) Sets the callback that determines the access modifier of a given declared expression.- Parameters:
accessModifierExpression
- callback returning an access modifier for a declared expression- Returns:
- itself
-
getAccessModifierTable
Returns the callback that determines the access modifier of a given declared expression.- Returns:
- callback returning an access modifier for a declared expression
-
setAccessModifierTable
Returns the callback that determines the access modifier of a given table.- Parameters:
accessModifierTable
- callback returning an access modifier for a table- Returns:
- itself
-
getStatementName
Returns the callback that determines the statement name- Returns:
- callback returning the statement name
-
setStatementName
Sets the callback that determines the statement name- Parameters:
statementName
- callback returning the statement name- Returns:
- itself
-
getAccessModifierNamedWindow
Returns the callback that determines the access modifier of a given named window.- Returns:
- callback returning an access modifier for an named window
-
setAccessModifierNamedWindow
public CompilerOptions setAccessModifierNamedWindow(AccessModifierNamedWindowOption accessModifierNamedWindow) Sets the callback that determines the access modifier of a given named window.- Parameters:
accessModifierNamedWindow
- callback returning an access modifier for an named window- Returns:
- itself
-
getAccessModifierScript
Returns the callback that determines the access modifier of a given script.- Returns:
- callback returning an access modifier for a script
-
setAccessModifierScript
Sets the callback that determines the access modifier of a given script.- Parameters:
accessModifierScript
- callback returning an access modifier for a script- Returns:
- itself
-
getModuleName
Returns the callback that determines the module name.- Returns:
- callback returning the module name to use
-
setModuleName
Sets the callback that determines the module name.- Parameters:
moduleName
- callback returning the module name to use- Returns:
- itself
-
getModuleUses
Returns the callback that determines the module uses.- Returns:
- callback returning the module uses
-
setModuleUses
Sets the callback that determines the module uses.- Parameters:
moduleUses
- callback returning the module uses- Returns:
- itself
-
getInlinedClassInspection
Returns the classback for inlined-class compilation wherein the callback receives class output- Returns:
- callback
-
setInlinedClassInspection
Sets the classback for inlined-class compilation wherein the callback receives class output- Parameters:
inlinedClassInspection
- callback
-
getStateMgmtSetting
For internal-use-only and subject-to-change-between-versions, state-management settings- Returns:
- settings option
-
setStateMgmtSetting
For internal-use-only and subject-to-change-between-versions, state-management settings- Parameters:
stateMgmtSetting
- settings option
-
getPathCache
Returns a cache, or null if not using a cache, that retains for eachEPCompiled
the EPL objects that theEPCompiled
provides.- Returns:
- cache or null if not using a cache
-
setPathCache
Sets the cache, or null if not using a cache, that retains for eachEPCompiled
the EPL objects that theEPCompiled
provides.- Parameters:
pathCache
- or null if not using a cache
-
getCompilerHook
Experimental API: Returns the provider of the compiler to useNOTE: Experimental API and not supported
- Returns:
- compiler option or null to use the default Janino-based compiler
-
setCompilerHook
Experimental API: Sets the provider of the compiler to useNOTE: Experimental API and not supported
Experimental - Not Supported - Set the JDK compiler like this:
compilerHook = new CompilerHookOption() { public CompilerAbstraction getValue(CompilerHookContext env) { return new CompilerAbstractionToolProvider(ToolProvider.getSystemJavaCompiler()); } };
- Parameters:
compilerHook
- provider of the compiler to that replaces the default Janino-based compiler
-