Class CharParam
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<Character>
org.evomaster.client.java.controller.problem.rpc.schema.params.CharParam
- All Implemented Interfaces:
NumericConstraintBase<BigDecimal>
char param
-
Field Summary
Fields inherited from class org.evomaster.client.java.controller.problem.rpc.schema.params.NamedTypedValue
accessibleSchema, mapperAllowUnkownFields, objectMaper -
Constructor Summary
ConstructorsConstructorDescriptionCharParam(String name, String type, String fullTypeName, Class<?> clazz, AccessibleSchema accessibleSchema, JavaDtoSpec spec) CharParam(String name, PrimitiveOrWrapperType type, AccessibleSchema accessibleSchema) -
Method Summary
Modifier and TypeMethodDescriptiongetDto()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
-
CharParam
public CharParam(String name, String type, String fullTypeName, Class<?> clazz, AccessibleSchema accessibleSchema, JavaDtoSpec spec) -
CharParam
-
-
Method Details
-
getDto
Description copied from class:NamedTypedValueget its dto format in order to further handle it with evomastr core- Overrides:
getDtoin classPrimitiveOrWrapperParam<Character>- Returns:
- its corresponding dto
-
getValueAsJavaString
- Specified by:
getValueAsJavaStringin classNamedTypedValue<PrimitiveOrWrapperType,Character> - Returns:
- a string which could representing the value of the param with java eg, float 4.2 could be 4.2f
-
copyStructure
- Specified by:
copyStructurein classNamedTypedValue<PrimitiveOrWrapperType,Character>
-
setValueBasedOnStringValue
- Specified by:
setValueBasedOnStringValuein classPrimitiveOrWrapperParam<Character>
-
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,Character> - Parameters:
instance- is the instance
-
isValidInstance
- Overrides:
isValidInstancein classNamedTypedValue<PrimitiveOrWrapperType,Character> - 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<Character>
-