Package io.sundr.model.utils
Class Setter
- java.lang.Object
-
- io.sundr.model.utils.Setter
-
public class Setter extends Object
-
-
Constructor Summary
Constructors Constructor Description Setter()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static io.sundr.model.Methodfind(RichTypeDef richType, io.sundr.model.Property property)Find the setter of the specified property in the rich type.static io.sundr.model.Methodfind(io.sundr.model.TypeDef type, io.sundr.model.Property property)Find the setter of the specified property in the type.static booleanhas(io.sundr.model.TypeDef clazz, io.sundr.model.Property property)static booleanhasOrInherits(RichTypeDef clazz, io.sundr.model.Property property)static booleanhasOrInherits(io.sundr.model.TypeDef clazz, io.sundr.model.Property property)static booleanisApplicable(io.sundr.model.Method method, io.sundr.model.Property property)
-
-
-
Method Detail
-
find
public static io.sundr.model.Method find(io.sundr.model.TypeDef type, io.sundr.model.Property property)Find the setter of the specified property in the type.- Parameters:
type- The class.property- The property.- Returns:
- The setter method if found. Throws exception if no setter is matched.
-
find
public static io.sundr.model.Method find(RichTypeDef richType, io.sundr.model.Property property)
Find the setter of the specified property in the rich type.- Parameters:
richType- The class.property- The property.- Returns:
- The setter method if found. Throws exception if no setter is matched.
-
has
public static boolean has(io.sundr.model.TypeDef clazz, io.sundr.model.Property property)
-
isApplicable
public static boolean isApplicable(io.sundr.model.Method method, io.sundr.model.Property property)
-
hasOrInherits
public static boolean hasOrInherits(RichTypeDef clazz, io.sundr.model.Property property)
-
hasOrInherits
public static boolean hasOrInherits(io.sundr.model.TypeDef clazz, io.sundr.model.Property property)
-
-