public class EnumMethodModeStaticMethod extends Object implements EnumMethodMode
Constructor and Description |
---|
EnumMethodModeStaticMethod()
Ctor.
|
EnumMethodModeStaticMethod(EPTypeClass stateClass,
Class serviceClass,
String methodName,
EPChainableType returnType,
boolean earlyExit)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
Function<EnumMethodLambdaParameterDescriptor,EnumMethodLambdaParameterType> |
getLambdaParameters()
Returns the function that determines, for each lambda parameter, the lambda parameter type.
|
String |
getMethodName()
Returns the method name of the public static processing method provided by the service class
|
EPChainableType |
getReturnType()
Returns the return type of the enumeration method.
|
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(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 class
|
void |
setReturnType(EPChainableType returnType)
Sets the return type of the enumeration method.
|
void |
setServiceClass(Class serviceClass)
Sets the class providing the processing method
|
void |
setStateClass(EPTypeClass stateClass)
Sets the class providing state
|
public EnumMethodModeStaticMethod()
public EnumMethodModeStaticMethod(EPTypeClass stateClass, Class serviceClass, String methodName, 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 String getMethodName()
public EPTypeClass getStateClass()
public Class getServiceClass()
public EPChainableType getReturnType()
public boolean isEarlyExit()
public void setLambdaParameters(Function<EnumMethodLambdaParameterDescriptor,EnumMethodLambdaParameterType> lambdaParameters)
lambdaParameters
- functionpublic 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(Class serviceClass)
serviceClass
- class providing the public static processing methodpublic void setMethodName(String methodName)
methodName
- method namepublic void setReturnType(EPChainableType returnType)
returnType
- return typepublic void setEarlyExit(boolean earlyExit)
earlyExit
- early-exit indicatorCopyright © 2005–2021. All rights reserved.