Class ConfigurationCompilerByteCode

java.lang.Object
com.espertech.esper.common.client.configuration.compiler.ConfigurationCompilerByteCode
All Implemented Interfaces:
Serializable

public class ConfigurationCompilerByteCode extends Object implements Serializable
Code generation settings.
See Also:
  • 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 calls setSubscriber 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 calls setSubscriber 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

      public NameAccessModifier getAccessModifierEventType()
      Returns the default access modifier for event types
      Returns:
      access modifier
    • setAccessModifierEventType

      public void setAccessModifierEventType(NameAccessModifier accessModifierEventType)
      Sets the default access modifier for event types
      Parameters:
      accessModifierEventType - access modifier
    • getAccessModifierNamedWindow

      public NameAccessModifier getAccessModifierNamedWindow()
      Returns the default access modifier for named windows
      Returns:
      access modifier
    • setAccessModifierNamedWindow

      public void setAccessModifierNamedWindow(NameAccessModifier accessModifierNamedWindow)
      Sets the default access modifier for named windows
      Parameters:
      accessModifierNamedWindow - access modifier
    • getAccessModifierContext

      public NameAccessModifier getAccessModifierContext()
      Returns the default access modifier for contexts
      Returns:
      access modifier
    • setAccessModifierContext

      public void setAccessModifierContext(NameAccessModifier accessModifierContext)
      Sets the default access modifier for contexts
      Parameters:
      accessModifierContext - access modifier
    • getAccessModifierVariable

      public NameAccessModifier getAccessModifierVariable()
      Returns the default access modifier for variables
      Returns:
      access modifier
    • setAccessModifierVariable

      public void setAccessModifierVariable(NameAccessModifier accessModifierVariable)
      Sets the default access modifier for variables
      Parameters:
      accessModifierVariable - access modifier
    • getAccessModifierExpression

      public NameAccessModifier getAccessModifierExpression()
      Returns the default access modifier for declared expressions
      Returns:
      access modifier
    • setAccessModifierExpression

      public void setAccessModifierExpression(NameAccessModifier accessModifierExpression)
      Sets the default access modifier for declared expressions
      Parameters:
      accessModifierExpression - access modifier
    • getAccessModifierScript

      public NameAccessModifier getAccessModifierScript()
      Returns the default access modifier for scripts
      Returns:
      access modifier
    • setAccessModifierScript

      public void setAccessModifierScript(NameAccessModifier accessModifierScript)
      Sets the default access modifier for scripts
      Parameters:
      accessModifierScript - bus modifier
    • getAccessModifierTable

      public NameAccessModifier getAccessModifierTable()
      Returns the default access modifier for tables
      Returns:
      access modifier
    • setAccessModifierTable

      public void setAccessModifierTable(NameAccessModifier accessModifierTable)
      Sets the default access modifier for tables
      Parameters:
      accessModifierTable - bus modifier
    • getAccessModifierInlinedClass

      public NameAccessModifier getAccessModifierInlinedClass()
      Returns the default access modifier for inlined-classes
      Returns:
      access modifier
    • setAccessModifierInlinedClass

      public void setAccessModifierInlinedClass(NameAccessModifier accessModifierInlinedClass)
      Sets the default access modifier for inlined-classes
      Parameters:
      accessModifierInlinedClass - bus modifier
    • getBusModifierEventType

      public EventTypeBusModifier getBusModifierEventType()
      Returns the default bus modifier for event types
      Returns:
      access modifier
    • setBusModifierEventType

      public void setBusModifierEventType(EventTypeBusModifier busModifierEventType)
      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

      public Integer 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

      public 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).
      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