Class ShortParam
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<Short>
org.evomaster.client.java.controller.problem.rpc.schema.params.ShortParam
- All Implemented Interfaces:
NumericConstraintBase<BigDecimal>
int param
-
Field Summary
Fields inherited from class org.evomaster.client.java.controller.problem.rpc.schema.params.NamedTypedValue
accessibleSchema, mapperAllowUnkownFields, objectMaper -
Constructor Summary
ConstructorsConstructorDescriptionShortParam(String name, String type, String fullTypeName, Class<?> clazz, AccessibleSchema accessibleSchema, JavaDtoSpec spec) ShortParam(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, 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
-
ShortParam
public ShortParam(String name, String type, String fullTypeName, Class<?> clazz, AccessibleSchema accessibleSchema, JavaDtoSpec spec) -
ShortParam
-
-
Method Details
-
getValueAsJavaString
- Specified by:
getValueAsJavaStringin classNamedTypedValue<PrimitiveOrWrapperType,Short> - Returns:
- a string which could representing the value of the param with java eg, float 4.2 could be 4.2f
-
getDto
Description copied from class:NamedTypedValueget its dto format in order to further handle it with evomastr core- Overrides:
getDtoin classPrimitiveOrWrapperParam<Short>- Returns:
- its corresponding dto
-
copyStructure
- Specified by:
copyStructurein classNamedTypedValue<PrimitiveOrWrapperType,Short>
-
setValueBasedOnStringValue
- Specified by:
setValueBasedOnStringValuein classPrimitiveOrWrapperParam<Short>
-
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,Short> - Parameters:
instance- is the instance
-
isValidInstance
- Overrides:
isValidInstancein classNamedTypedValue<PrimitiveOrWrapperType,Short> - Parameters:
instance- a java object which is an instance of this param schema- Returns:
- if the specified instance conforms with this param schema
-
getCastType
- Overrides:
getCastTypein classPrimitiveOrWrapperParam<Short>- Returns:
- a cast type for this param, null means that there is no need to cast the value to a type
-
primitiveValueMethod
- Specified by:
primitiveValueMethodin classPrimitiveOrWrapperParam<Short>
-