Class Setter

java.lang.Object
io.sundr.model.utils.Setter

public class Setter extends Object
  • Constructor Details

    • Setter

      public Setter()
  • Method Details

    • find

      public static Method find(TypeDef type, Field field)
      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

      public static Method find(RichTypeDef richType, Field field)
      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

      public static boolean has(TypeDef clazz, Field field)
    • isApplicable

      public static boolean isApplicable(Method method, Variable<?> argument)
    • hasOrInherits

      public static boolean hasOrInherits(RichTypeDef clazz, Field field)
    • hasOrInherits

      public static boolean hasOrInherits(TypeDef clazz, Field field)