Class BooleanParam
java.lang.Object
org.evomaster.client.java.controller.problem.rpc.schema.params.NamedTypedValue<PrimitiveOrWrapperType,V>
org.evomaster.client.java.controller.problem.rpc.schema.params.PrimitiveOrWrapperParam<Boolean>
org.evomaster.client.java.controller.problem.rpc.schema.params.BooleanParam
- All Implemented Interfaces:
NumericConstraintBase<BigDecimal>
boolean param
-
Field Summary
Fields inherited from class org.evomaster.client.java.controller.problem.rpc.schema.params.NamedTypedValue
accessibleSchema, mapperAllowUnkownFields, objectMaper -
Constructor Summary
ConstructorsConstructorDescriptionBooleanParam(String name, String type, String fullTypeName, Class<?> clazz, AccessibleSchema accessibleSchema, JavaDtoSpec spec) BooleanParam(String name, PrimitiveOrWrapperType type, AccessibleSchema accessibleSchema) -
Method Summary
Modifier and TypeMethodDescriptionorg.evomaster.client.java.controller.api.dto.problem.rpc.ParamDtogetDto()get its dto format in order to further handle it with evomastr coregetValueAsJavaString(boolean isJava) booleanisValidInstance(Object instance) primitiveValueMethod(boolean isJava) voidsetValueBasedOnStringValue(String stringValue) protected voidsetValueBasedOnValidInstance(Object instance) set the value of the param based on instance compared with [setValueBasedOnInstance], the type of the instance here is evaluated as validMethods inherited from class org.evomaster.client.java.controller.problem.rpc.schema.params.PrimitiveOrWrapperParam
build, castValueInTestGenerationIfNeeded, castValueWithSpecificMethod, convertValueTo, copyProperties, getCastType, getMax, getMaxInclusive, getMin, getMinInclusive, getPrecision, getPrimitiveOrWrapper, getPrimitiveValueInAssertion, getScale, newAssertionWithJavaOrKotlin, newInstance, newInstanceWithJavaOrKotlin, referenceTypes, setMax, setMaxInclusive, setMin, setMinInclusive, setPrecision, setScale, setValueBasedOnDtoMethods inherited from class org.evomaster.client.java.controller.problem.rpc.schema.params.NamedTypedValue
copyStructureWithProperties, getCandidateReferences, getCandidates, getDefaultValue, getName, getType, getValue, isHasDependentCandidates, isMutable, isNullable, newAssertionWithJavaOrKotlin, newInstanceWithJavaOrKotlin, parseValueWithJson, sameParam, setCandidateReferences, setCandidates, setDefaultValue, setHasDependentCandidates, setMutable, setNullable, setValue, setValueBasedOnInstance, setValueBasedOnInstanceOrJsonMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.evomaster.client.java.controller.problem.rpc.schema.params.NumericConstraintBase
handleConstraintsInCopy, handleConstraintsInCopyDto
-
Constructor Details
-
BooleanParam
public BooleanParam(String name, String type, String fullTypeName, Class<?> clazz, AccessibleSchema accessibleSchema, JavaDtoSpec spec) -
BooleanParam
-
-
Method Details
-
getValueAsJavaString
- Specified by:
getValueAsJavaStringin classNamedTypedValue<PrimitiveOrWrapperType,Boolean> - Returns:
- a string which could representing the value of the param with java eg, float 4.2 could be 4.2f
-
getDto
public org.evomaster.client.java.controller.api.dto.problem.rpc.ParamDto getDto()Description copied from class:NamedTypedValueget its dto format in order to further handle it with evomastr core- Overrides:
getDtoin classPrimitiveOrWrapperParam<Boolean>- Returns:
- its corresponding dto
-
copyStructure
- Specified by:
copyStructurein classNamedTypedValue<PrimitiveOrWrapperType,Boolean>
-
setValueBasedOnStringValue
- Specified by:
setValueBasedOnStringValuein classPrimitiveOrWrapperParam<Boolean>
-
setValueBasedOnValidInstance
Description copied from class:NamedTypedValueset the value of the param based on instance compared with [setValueBasedOnInstance], the type of the instance here is evaluated as valid- Specified by:
setValueBasedOnValidInstancein classNamedTypedValue<PrimitiveOrWrapperType,Boolean> - Parameters:
instance- is the instance
-
isValidInstance
- Overrides:
isValidInstancein classNamedTypedValue<PrimitiveOrWrapperType,Boolean> - Parameters:
instance- a java object which is an instance of this param schema- Returns:
- if the specified instance conforms with this param schema
-
primitiveValueMethod
- Specified by:
primitiveValueMethodin classPrimitiveOrWrapperParam<Boolean>
-