Class ByteParam
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<Byte>
org.evomaster.client.java.controller.problem.rpc.schema.params.ByteParam
- All Implemented Interfaces:
NumericConstraintBase<BigDecimal>
byte param
-
Field Summary
FieldsFields inherited from class org.evomaster.client.java.controller.problem.rpc.schema.params.NamedTypedValue
accessibleSchema, mapperAllowUnkownFields, objectMaper -
Constructor Summary
ConstructorsConstructorDescriptionByteParam(String name, String type, String fullTypeName, Class<?> clazz, AccessibleSchema accessibleSchema, JavaDtoSpec spec) ByteParam(String name, PrimitiveOrWrapperType type, AccessibleSchema accessibleSchema) -
Method Summary
Modifier and TypeMethodDescriptioncastValueInTestGenerationIfNeeded(String stringValue, boolean isJava) booleancastValueWithSpecificMethod(boolean isJava) getDto()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, 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
-
Field Details
-
TYPE_NAME
-
FULL_TYPE_NAME
-
-
Constructor Details
-
ByteParam
public ByteParam(String name, String type, String fullTypeName, Class<?> clazz, AccessibleSchema accessibleSchema, JavaDtoSpec spec) -
ByteParam
-
-
Method Details
-
getValueAsJavaString
- Specified by:
getValueAsJavaStringin classNamedTypedValue<PrimitiveOrWrapperType,Byte> - 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<Byte>- Returns:
- its corresponding dto
-
copyStructure
- Specified by:
copyStructurein classNamedTypedValue<PrimitiveOrWrapperType,Byte>
-
setValueBasedOnStringValue
- Specified by:
setValueBasedOnStringValuein classPrimitiveOrWrapperParam<Byte>
-
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,Byte> - Parameters:
instance- is the instance
-
isValidInstance
- Overrides:
isValidInstancein classNamedTypedValue<PrimitiveOrWrapperType,Byte> - 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<Byte>- Returns:
- a cast type for this param, null means that there is no need to cast the value to a type
-
castValueWithSpecificMethod
public boolean castValueWithSpecificMethod(boolean isJava) - Overrides:
castValueWithSpecificMethodin classPrimitiveOrWrapperParam<Byte>
-
castValueInTestGenerationIfNeeded
- Overrides:
castValueInTestGenerationIfNeededin classPrimitiveOrWrapperParam<Byte>
-
primitiveValueMethod
- Specified by:
primitiveValueMethodin classPrimitiveOrWrapperParam<Byte>
-