Class ConfigurationCompilerByteCode
java.lang.Object
com.espertech.esper.common.client.configuration.compiler.ConfigurationCompilerByteCode
- All Implemented Interfaces:
Serializable
Code generation settings.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the default access modifier for contextsReturns the default access modifier for event typesReturns the default access modifier for declared expressionsReturns the default access modifier for inlined-classesReturns the default access modifier for named windowsReturns the default access modifier for scriptsReturns the default access modifier for tablesReturns the default access modifier for variablesReturns the default bus modifier for event typesint
(Internal-use-only) Returns the maximum number of members per class, which defaults to 2k.int
(Internal-use-only) Sets the maximum method complexity, which defaults to 1k.int
Returns the maximum number of methods per class, which defaults to 1k.Returns the capacity of the parallel compiler semaphore, or null if none defined (null is the default and is the unbounded case).int
Returns the number of threads available for parallel compilation of multiple EPL statements.boolean
Returns the flag whether the compiler allows inlined classesboolean
Returns indicator whether any statements allow subscribers or not (false by default).boolean
Returns the indicator whether the EPL text will be available as a statement property.boolean
Returns the indicator whether the EPL module text will be available as a module property.boolean
Returns the indicator whether, for tools with access to pattern factories, the pattern subexpression text will be available for the pattern.boolean
Returns indicator whether the generated source code should include comments for tracing backboolean
Returns indicator whether the binary class code should include debug symbolsboolean
Returns the indicator whether the compiler generates instrumented byte code for use with the debugger.void
setAccessModifierContext
(NameAccessModifier accessModifierContext) Sets the default access modifier for contextsvoid
setAccessModifierEventType
(NameAccessModifier accessModifierEventType) Sets the default access modifier for event typesvoid
setAccessModifierExpression
(NameAccessModifier accessModifierExpression) Sets the default access modifier for declared expressionsvoid
setAccessModifierInlinedClass
(NameAccessModifier accessModifierInlinedClass) Sets the default access modifier for inlined-classesvoid
setAccessModifierNamedWindow
(NameAccessModifier accessModifierNamedWindow) Sets the default access modifier for named windowsvoid
setAccessModifierScript
(NameAccessModifier accessModifierScript) Sets the default access modifier for scriptsvoid
Set all access modifiers to public.void
setAccessModifierTable
(NameAccessModifier accessModifierTable) Sets the default access modifier for tablesvoid
setAccessModifierVariable
(NameAccessModifier accessModifierVariable) Sets the default access modifier for variablesvoid
setAllowInlinedClass
(boolean allowInlinedClass) Sets the flag whether the compiler allows inlined classesvoid
setAllowSubscriber
(boolean allowSubscriber) Sets indicator whether any statements allow subscribers or not (false by default).void
setAttachEPL
(boolean attachEPL) Sets the indicator whether the EPL text will be available as a statement property.void
setAttachModuleEPL
(boolean enableAttachModuleEPL) Sets the indicator whether the EPL module text will be available as a module property.void
setAttachPatternEPL
(boolean attachPatternEPL) Sets the indicator whether, for tools with access to pattern factories, the pattern subexpression text will be available for the pattern.void
setBusModifierEventType
(EventTypeBusModifier busModifierEventType) Sets the default bus modifier for event typesvoid
setIncludeComments
(boolean includeComments) Sets indicator whether the generated source code should include comments for tracing backvoid
setIncludeDebugSymbols
(boolean includeDebugSymbols) Sets indicator whether the binary class code should include debug symbolsvoid
setInstrumented
(boolean instrumented) Sets the indicator whether the compiler generates instrumented byte code for use with the debugger.void
setInternalUseOnlyMaxMembersPerClass
(int internalUseOnlyMaxMembersPerClass) (Internal-use-only) Sets the maximum number of members per class, which defaults to 2k.void
setInternalUseOnlyMaxMethodComplexity
(int internalUseOnlyMaxMethodComplexity) (Internal-use-only) Sets the maximum method complexity, which defaults to 1k.void
setMaxMethodsPerClass
(int maxMethodsPerClass) Sets the maximum number of methods per class, which defaults to 1k.void
setThreadPoolCompilerCapacity
(Integer threadPoolCompilerCapacity) Sets the capacity of the parallel compiler semaphore, or null if none defined (null is the default and is the unbounded case).void
setThreadPoolCompilerNumThreads
(int threadPoolCompilerNumThreads) Sets the number of threads available for parallel compilation of multiple EPL statements.
-
Constructor Details
-
ConfigurationCompilerByteCode
public ConfigurationCompilerByteCode()
-
-
Method Details
-
setAccessModifiersPublic
public void setAccessModifiersPublic()Set all access modifiers to public. -
isIncludeDebugSymbols
public boolean isIncludeDebugSymbols()Returns indicator whether the binary class code should include debug symbols- Returns:
- indicator
-
setIncludeDebugSymbols
public void setIncludeDebugSymbols(boolean includeDebugSymbols) Sets indicator whether the binary class code should include debug symbols- Parameters:
includeDebugSymbols
- indicator
-
isIncludeComments
public boolean isIncludeComments()Returns indicator whether the generated source code should include comments for tracing back- Returns:
- indicator
-
setIncludeComments
public void setIncludeComments(boolean includeComments) Sets indicator whether the generated source code should include comments for tracing back- Parameters:
includeComments
- indicator
-
isAttachEPL
public boolean isAttachEPL()Returns the indicator whether the EPL text will be available as a statement property. The default is true and the compiler provides the EPL as a statement property. When set to false the compiler does not retain the EPL in the compiler output.- Returns:
- indicator
-
setAttachEPL
public void setAttachEPL(boolean attachEPL) Sets the indicator whether the EPL text will be available as a statement property. The default is true and the compiler provides the EPL as a statement property. When set to false the compiler does not retain the EPL in the compiler output.- Parameters:
attachEPL
- indicator
-
isAttachModuleEPL
public boolean isAttachModuleEPL()Returns the indicator whether the EPL module text will be available as a module property. The default is false and the compiler does not provide the module EPL as a module property. When set to true the compiler retains the module EPL in the compiler output.- Returns:
- indicator
-
setAttachModuleEPL
public void setAttachModuleEPL(boolean enableAttachModuleEPL) Sets the indicator whether the EPL module text will be available as a module property. The default is false and the compiler does not provide the module EPL as a module property. When set to true the compiler retains the module EPL in the compiler output.- Parameters:
enableAttachModuleEPL
- indicator
-
isAllowSubscriber
public boolean isAllowSubscriber()Returns indicator whether any statements allow subscribers or not (false by default). The default is false which results in the runtime throwing an exception when an application callssetSubscriber
on a statement.- Returns:
- indicator
-
setAllowSubscriber
public void setAllowSubscriber(boolean allowSubscriber) Sets indicator whether any statements allow subscribers or not (false by default). The default is false which results in the runtime throwing an exception when an application callssetSubscriber
on a statement.- Parameters:
allowSubscriber
- indicator
-
isInstrumented
public boolean isInstrumented()Returns the indicator whether the compiler generates instrumented byte code for use with the debugger.- Returns:
- indicator
-
setInstrumented
public void setInstrumented(boolean instrumented) Sets the indicator whether the compiler generates instrumented byte code for use with the debugger.- Parameters:
instrumented
- indicator
-
getAccessModifierEventType
Returns the default access modifier for event types- Returns:
- access modifier
-
setAccessModifierEventType
Sets the default access modifier for event types- Parameters:
accessModifierEventType
- access modifier
-
getAccessModifierNamedWindow
Returns the default access modifier for named windows- Returns:
- access modifier
-
setAccessModifierNamedWindow
Sets the default access modifier for named windows- Parameters:
accessModifierNamedWindow
- access modifier
-
getAccessModifierContext
Returns the default access modifier for contexts- Returns:
- access modifier
-
setAccessModifierContext
Sets the default access modifier for contexts- Parameters:
accessModifierContext
- access modifier
-
getAccessModifierVariable
Returns the default access modifier for variables- Returns:
- access modifier
-
setAccessModifierVariable
Sets the default access modifier for variables- Parameters:
accessModifierVariable
- access modifier
-
getAccessModifierExpression
Returns the default access modifier for declared expressions- Returns:
- access modifier
-
setAccessModifierExpression
Sets the default access modifier for declared expressions- Parameters:
accessModifierExpression
- access modifier
-
getAccessModifierScript
Returns the default access modifier for scripts- Returns:
- access modifier
-
setAccessModifierScript
Sets the default access modifier for scripts- Parameters:
accessModifierScript
- bus modifier
-
getAccessModifierTable
Returns the default access modifier for tables- Returns:
- access modifier
-
setAccessModifierTable
Sets the default access modifier for tables- Parameters:
accessModifierTable
- bus modifier
-
getAccessModifierInlinedClass
Returns the default access modifier for inlined-classes- Returns:
- access modifier
-
setAccessModifierInlinedClass
Sets the default access modifier for inlined-classes- Parameters:
accessModifierInlinedClass
- bus modifier
-
getBusModifierEventType
Returns the default bus modifier for event types- Returns:
- access modifier
-
setBusModifierEventType
Sets the default bus modifier for event types- Parameters:
busModifierEventType
- bus modifier
-
isAttachPatternEPL
public boolean isAttachPatternEPL()Returns the indicator whether, for tools with access to pattern factories, the pattern subexpression text will be available for the pattern. The default is false and the compiler does not produce text for patterns for tooling. When set to true the compiler does generate pattern subexpression text for pattern for use by tools.- Returns:
- indicator
-
setAttachPatternEPL
public void setAttachPatternEPL(boolean attachPatternEPL) Sets the indicator whether, for tools with access to pattern factories, the pattern subexpression text will be available for the pattern. The default is false and the compiler does not produce text for patterns for tooling. When set to true the compiler does generate pattern subexpression text for pattern for use by tools.- Parameters:
attachPatternEPL
- flag
-
getThreadPoolCompilerNumThreads
public int getThreadPoolCompilerNumThreads()Returns the number of threads available for parallel compilation of multiple EPL statements. The default is 8 threads.- Returns:
- number of threads
-
setThreadPoolCompilerNumThreads
public void setThreadPoolCompilerNumThreads(int threadPoolCompilerNumThreads) Sets the number of threads available for parallel compilation of multiple EPL statements. The default is 8 threads.- Parameters:
threadPoolCompilerNumThreads
- number of threads
-
getThreadPoolCompilerCapacity
Returns the capacity of the parallel compiler semaphore, or null if none defined (null is the default and is the unbounded case).- Returns:
- capacity or null if none defined
-
setThreadPoolCompilerCapacity
Sets the capacity of the parallel compiler semaphore, or null if none defined (null is the default and is the unbounded case).- Parameters:
threadPoolCompilerCapacity
- or null if none defined
-
getMaxMethodsPerClass
public int getMaxMethodsPerClass()Returns the maximum number of methods per class, which defaults to 1k. The lower limit for this number is 1000.- Returns:
- max number methods per class
-
setMaxMethodsPerClass
public void setMaxMethodsPerClass(int maxMethodsPerClass) Sets the maximum number of methods per class, which defaults to 1k.- Parameters:
maxMethodsPerClass
- max number methods per class
-
getInternalUseOnlyMaxMembersPerClass
public int getInternalUseOnlyMaxMembersPerClass()(Internal-use-only) Returns the maximum number of members per class, which defaults to 2k. The lower limit for this number is 1.- Returns:
- max number of members per class
-
setInternalUseOnlyMaxMembersPerClass
public void setInternalUseOnlyMaxMembersPerClass(int internalUseOnlyMaxMembersPerClass) (Internal-use-only) Sets the maximum number of members per class, which defaults to 2k. The lower limit for this number is 1.- Parameters:
internalUseOnlyMaxMembersPerClass
- max number of members per class
-
getInternalUseOnlyMaxMethodComplexity
public int getInternalUseOnlyMaxMethodComplexity()(Internal-use-only) Sets the maximum method complexity, which defaults to 1k. Applicable to methods that repeat operations on elements. This roughly corresponds to lines of code of a method. The lower limit is not defined.- Returns:
- max method complexity
-
setInternalUseOnlyMaxMethodComplexity
public void setInternalUseOnlyMaxMethodComplexity(int internalUseOnlyMaxMethodComplexity) (Internal-use-only) Sets the maximum method complexity, which defaults to 1k. Applicable to methods that repeat operations on elements. This roughly corresponds to lines of code of a method. The lower limit is not defined.- Parameters:
internalUseOnlyMaxMethodComplexity
- max method complexity
-
isAllowInlinedClass
public boolean isAllowInlinedClass()Returns the flag whether the compiler allows inlined classes- Returns:
- flag
-
setAllowInlinedClass
public void setAllowInlinedClass(boolean allowInlinedClass) Sets the flag whether the compiler allows inlined classes- Parameters:
allowInlinedClass
- flag
-