public class EnumMethodModeStaticMethod extends java.lang.Object implements EnumMethodMode
Constructor and Description |
---|
EnumMethodModeStaticMethod()
Ctor.
|
EnumMethodModeStaticMethod(EPTypeClass stateClass,
java.lang.Class serviceClass,
java.lang.String methodName,
com.espertech.esper.common.internal.rettype.EPChainableType returnType,
boolean earlyExit)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
java.util.function.Function<EnumMethodLambdaParameterDescriptor,EnumMethodLambdaParameterType> |
getLambdaParameters()
Returns the function that determines, for each lambda parameter, the lambda parameter type.
|
java.lang.String |
getMethodName()
Returns the method name of the public static processing method provided by the service class
|
com.espertech.esper.common.internal.rettype.EPChainableType |
getReturnType()
Returns the return type of the enumeration method.
|
java.lang.Class |
getServiceClass()
Returns the class providing the processing method
|
EPTypeClass |
getStateClass()
Returns the class providing state
|
boolean |
isEarlyExit()
Returns indicator whether the compiler should consider the
enumeration method as doing early-exit checking
|
void |
setEarlyExit(boolean earlyExit)
Sets the indicator whether the compiler should consider the
enumeration method as doing early-exit checking
|
void |
setLambdaParameters(java.util.function.Function<EnumMethodLambdaParameterDescriptor,EnumMethodLambdaParameterType> lambdaParameters)
Sets the function that determines, for each lambda parameter, the lambda parameter type.
|
void |
setMethodName(java.lang.String methodName)
Sets the method name of the public static processing method provided by the service class
|
void |
setReturnType(com.espertech.esper.common.internal.rettype.EPChainableType returnType)
Sets the return type of the enumeration method.
|
void |
setServiceClass(java.lang.Class serviceClass)
Sets the class providing the processing method
|
void |
setStateClass(EPTypeClass stateClass)
Sets the class providing state
|
public EnumMethodModeStaticMethod()
public EnumMethodModeStaticMethod(EPTypeClass stateClass, java.lang.Class serviceClass, java.lang.String methodName, com.espertech.esper.common.internal.rettype.EPChainableType returnType, boolean earlyExit)
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 statepublic java.lang.String getMethodName()
public EPTypeClass getStateClass()
public java.lang.Class getServiceClass()
public com.espertech.esper.common.internal.rettype.EPChainableType getReturnType()
public boolean isEarlyExit()
public void setLambdaParameters(java.util.function.Function<EnumMethodLambdaParameterDescriptor,EnumMethodLambdaParameterType> lambdaParameters)
lambdaParameters
- functionpublic java.util.function.Function<EnumMethodLambdaParameterDescriptor,EnumMethodLambdaParameterType> getLambdaParameters()
This function defaults to a function that assumes a value-type for all lambda parameters.
public void setStateClass(EPTypeClass stateClass)
stateClass
- state classpublic void setServiceClass(java.lang.Class serviceClass)
serviceClass
- class providing the public static processing methodpublic void setMethodName(java.lang.String methodName)
methodName
- method namepublic void setReturnType(com.espertech.esper.common.internal.rettype.EPChainableType returnType)
returnType
- return typepublic void setEarlyExit(boolean earlyExit)
earlyExit
- early-exit indicator