Class EnumParam<T extends Enum<?> & EnumParam.EnumPropertyValue>
- java.lang.Object
-
- us.abstracta.jmeter.javadsl.codegeneration.MethodParam
-
- us.abstracta.jmeter.javadsl.codegeneration.params.FixedParam<T>
-
- us.abstracta.jmeter.javadsl.codegeneration.params.EnumParam<T>
-
- Type Parameters:
T- is the type of the enum value.
public class EnumParam<T extends Enum<?> & EnumParam.EnumPropertyValue> extends FixedParam<T>
Is a parameter with an enum value.- Since:
- 0.62
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceEnumParam.EnumPropertyValue
-
Field Summary
-
Fields inherited from class us.abstracta.jmeter.javadsl.codegeneration.params.FixedParam
defaultValue, value
-
Fields inherited from class us.abstracta.jmeter.javadsl.codegeneration.MethodParam
expression, paramType
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringbuildCode(String indent)Set<String>getImports()Gets all classes that are required to be statically imported by generated code.-
Methods inherited from class us.abstracta.jmeter.javadsl.codegeneration.params.FixedParam
getValue, isDefault
-
Methods inherited from class us.abstracta.jmeter.javadsl.codegeneration.MethodParam
buildStringLiteral, findConstantNames, findConstantNamesMap, getExpression, getMethodDefinitions, getStaticImports, getType, isIgnored
-
-
-
-
Method Detail
-
getImports
public Set<String> getImports()
Description copied from class:MethodParamGets all classes that are required to be statically imported by generated code.Override this method if you implement a custom MethodParam that requires some particular static import.
- Overrides:
getImportsin classMethodParam- Returns:
- the set of required classes names that need to be statically imported by generated code.
-
buildCode
public String buildCode(String indent)
- Overrides:
buildCodein classFixedParam<T extends Enum<?> & EnumParam.EnumPropertyValue>
-
-