T - is the type of the enum value.public class EnumParam<T extends Enum<?> & EnumParam.EnumPropertyValue> extends FixedParam<T>
| Modifier and Type | Class and Description |
|---|---|
static interface |
EnumParam.EnumPropertyValue |
defaultValue, valueexpression, paramType| Constructor and Description |
|---|
EnumParam(Class<T> paramType,
String expression,
T defaultValue) |
| Modifier and Type | Method and Description |
|---|---|
String |
buildCode(String indent) |
Set<String> |
getImports()
Gets all classes that are required to be statically imported by generated code.
|
getValue, isDefaultbuildStringLiteral, findConstantNames, findConstantNamesMap, getExpression, getMethodDefinitions, getStaticImports, getType, isIgnoredpublic Set<String> getImports()
MethodParamOverride this method if you implement a custom MethodParam that requires some particular static import.
getImports in class MethodParampublic String buildCode(String indent)
buildCode in class FixedParam<T extends Enum<?> & EnumParam.EnumPropertyValue>Copyright © 2023. All rights reserved.