Class EnumMethodModeStaticMethod

java.lang.Object
com.espertech.esper.common.client.hook.enummethod.EnumMethodModeStaticMethod
All Implemented Interfaces:
EnumMethodMode

public class EnumMethodModeStaticMethod extends Object implements EnumMethodMode
Provides information about the public static method that implements the logic for the enumeration method.
  • Constructor Details

    • EnumMethodModeStaticMethod

      public EnumMethodModeStaticMethod()
      Ctor.
    • EnumMethodModeStaticMethod

      public EnumMethodModeStaticMethod(EPTypeClass stateClass, Class serviceClass, String methodName, EPChainableType returnType, boolean earlyExit)
      Ctor.
      Parameters:
      stateClass - class
      serviceClass - class
      methodName - method
      returnType - return type
      earlyExit - early-exit indicator, when the compiler should generate code to check for early-exit by calling the "completed" method of the state
  • Method Details

    • getMethodName

      public String getMethodName()
      Returns the method name of the public static processing method provided by the service class
      Returns:
      method
    • getStateClass

      public EPTypeClass getStateClass()
      Returns the class providing state
      Returns:
      state class
    • getServiceClass

      public Class getServiceClass()
      Returns the class providing the processing method
      Returns:
      class providing the public static processing method
    • getReturnType

      public EPChainableType getReturnType()
      Returns the return type of the enumeration method.
      Returns:
      type
    • isEarlyExit

      public boolean isEarlyExit()
      Returns indicator whether the compiler should consider the enumeration method as doing early-exit checking
      Returns:
      early-exit indicator
    • setLambdaParameters

      public void setLambdaParameters(Function<EnumMethodLambdaParameterDescriptor,EnumMethodLambdaParameterType> lambdaParameters)
      Sets the function that determines, for each lambda parameter, the lambda parameter type.
      Parameters:
      lambdaParameters - function
    • getLambdaParameters

      Returns the function that determines, for each lambda parameter, the lambda parameter type.

      This function defaults to a function that assumes a value-type for all lambda parameters.

      Returns:
      function
    • setStateClass

      public void setStateClass(EPTypeClass stateClass)
      Sets the class providing state
      Parameters:
      stateClass - state class
    • setServiceClass

      public void setServiceClass(Class serviceClass)
      Sets the class providing the processing method
      Parameters:
      serviceClass - class providing the public static processing method
    • setMethodName

      public void setMethodName(String methodName)
      Sets the method name of the public static processing method provided by the service class
      Parameters:
      methodName - method name
    • setReturnType

      public void setReturnType(EPChainableType returnType)
      Sets the return type of the enumeration method.
      Parameters:
      returnType - return type
    • setEarlyExit

      public void setEarlyExit(boolean earlyExit)
      Sets the indicator whether the compiler should consider the enumeration method as doing early-exit checking
      Parameters:
      earlyExit - early-exit indicator