Package io.sundr.model.utils
Class Setter
java.lang.Object
io.sundr.model.utils.Setter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Methodfind(RichTypeDef richType, Field field) Find the setter of the specified field in the rich type.static MethodFind the setter of the specified field in the type.static booleanstatic booleanhasOrInherits(RichTypeDef clazz, Field field) static booleanhasOrInherits(TypeDef clazz, Field field) static booleanisApplicable(Method method, Variable<?> argument)
-
Constructor Details
-
Setter
public Setter()
-
-
Method Details
-
find
Find the setter of the specified field in the type.- Parameters:
type- The class.field- The field.- Returns:
- The setter method if found. Throws exception if no setter is matched.
-
find
Find the setter of the specified field in the rich type.- Parameters:
richType- The class.field- The field.- Returns:
- The setter method if found. Throws exception if no setter is matched.
-
has
-
isApplicable
-
hasOrInherits
-
hasOrInherits
-