public class ReflectionParamInfo<T> extends AbstractParamInfo<T>
ParamInfo.Traversal
Modifier and Type | Method and Description |
---|---|
T |
get(Object dto) |
Hint |
getHint() |
Object |
getImplicitPreCoercionValue() |
Method |
getSetter() |
boolean |
isOptional() |
static ReflectionParamInfo<?> |
of(TypeCoercerFactory typeCoercerFactory,
Method setter)
Create an instance of
ReflectionParamInfo |
void |
setCoercedValue(Object dto,
Object value)
Set the param on dto to value, assuming value has already been coerced.
|
execConfiguration, getName, getPythonName, getResultClass, getTypeCoercer, hasElementTypes, isConfigurable, isDep, isInput, isTargetGraphOnlyDep, set, splitConfiguration, traverse
public static ReflectionParamInfo<?> of(TypeCoercerFactory typeCoercerFactory, Method setter)
ReflectionParamInfo
public boolean isOptional()
@Nullable public Object getImplicitPreCoercionValue()
null
This is used for parameters that have a default value and need to be accessed by users'
rule implementations, but should not be set directly by users. e.g. underscore prefixed
attributes in user defined rules. These values are pre-coercion and may be user provided.
If this parameter is not an implicit parameter, this method should return null
public Method getSetter()