public class EnumMethodModeStaticMethod extends Object implements EnumMethodMode
Constructor and Description |
---|
EnumMethodModeStaticMethod()
Ctor.
|
EnumMethodModeStaticMethod(Class stateClass,
Class serviceClass,
String methodName,
EPType 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
|
EPType |
getReturnType()
Returns the return type of the enumeration method.
|
Class |
getServiceClass()
Returns the class providing the processing method
|
Class |
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(EPType returnType)
Sets the return type of the enumeration method.
|
void |
setServiceClass(Class serviceClass)
Sets the class providing the processing method
|
void |
setStateClass(Class stateClass)
Sets the class providing state
|
public EnumMethodModeStaticMethod()
public EnumMethodModeStaticMethod(Class stateClass, Class serviceClass, String methodName, EPType 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 Class getStateClass()
public Class getServiceClass()
public EPType 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(Class 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(EPType returnType)
returnType
- return typepublic void setEarlyExit(boolean earlyExit)
earlyExit
- early-exit indicatorCopyright © 2005–2019. All rights reserved.