Class EnumMethodModeStaticMethod
java.lang.Object
com.espertech.esper.common.client.hook.enummethod.EnumMethodModeStaticMethod
- All Implemented Interfaces:
EnumMethodMode
Provides information about the public static method that implements the logic for the enumeration method.
-
Constructor Summary
ConstructorDescriptionCtor.EnumMethodModeStaticMethod
(EPTypeClass stateClass, Class serviceClass, String methodName, EPChainableType returnType, boolean earlyExit) Ctor. -
Method Summary
Modifier and TypeMethodDescriptionReturns the function that determines, for each lambda parameter, the lambda parameter type.Returns the method name of the public static processing method provided by the service classReturns the return type of the enumeration method.Returns the class providing the processing methodReturns the class providing stateboolean
Returns indicator whether the compiler should consider the enumeration method as doing early-exit checkingvoid
setEarlyExit
(boolean earlyExit) Sets the indicator whether the compiler should consider the enumeration method as doing early-exit checkingvoid
setLambdaParameters
(Function<EnumMethodLambdaParameterDescriptor, EnumMethodLambdaParameterType> lambdaParameters) Sets the function that determines, for each lambda parameter, the lambda parameter type.void
setMethodName
(String methodName) Sets the method name of the public static processing method provided by the service classvoid
setReturnType
(EPChainableType returnType) Sets the return type of the enumeration method.void
setServiceClass
(Class serviceClass) Sets the class providing the processing methodvoid
setStateClass
(EPTypeClass stateClass) Sets the class providing state
-
Constructor Details
-
EnumMethodModeStaticMethod
public EnumMethodModeStaticMethod()Ctor. -
EnumMethodModeStaticMethod
public EnumMethodModeStaticMethod(EPTypeClass stateClass, Class serviceClass, String methodName, EPChainableType returnType, boolean earlyExit) Ctor.- Parameters:
stateClass
- classserviceClass
- classmethodName
- methodreturnType
- return typeearlyExit
- 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
Returns the method name of the public static processing method provided by the service class- Returns:
- method
-
getStateClass
Returns the class providing state- Returns:
- state class
-
getServiceClass
Returns the class providing the processing method- Returns:
- class providing the public static processing method
-
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
public Function<EnumMethodLambdaParameterDescriptor,EnumMethodLambdaParameterType> 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
Sets the class providing state- Parameters:
stateClass
- state class
-
setServiceClass
Sets the class providing the processing method- Parameters:
serviceClass
- class providing the public static processing method
-
setMethodName
Sets the method name of the public static processing method provided by the service class- Parameters:
methodName
- method name
-
setReturnType
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
-