Class UpdateWrapper

All Implemented Interfaces:
Assignment, Writable

public class UpdateWrapper extends AssignmentWrapper
Wraps the assignment in a target setter.
Author:
Sjaak Derksen
  • Constructor Details

    • UpdateWrapper

      public UpdateWrapper(Assignment decoratedAssignment, List<Type> thrownTypesToExclude, Assignment factoryMethod, boolean fieldAssignment, Type targetType, boolean includeSourceNullCheck, boolean setExplicitlyToNull, boolean setExplicitlyToDefault)
  • Method Details

    • getThrownTypes

      public List<Type> getThrownTypes()
      Description copied from interface: Assignment
      returns all types exception types thrown by this assignment.
      Specified by:
      getThrownTypes in interface Assignment
      Overrides:
      getThrownTypes in class AssignmentWrapper
      Returns:
      exceptions thrown
    • getImportTypes

      public Set<Type> getImportTypes()
      Description copied from class: ModelElement
      Returns a set containing those Types referenced by this model element for which an import statement needs to be declared.
      Specified by:
      getImportTypes in interface Assignment
      Overrides:
      getImportTypes in class AssignmentWrapper
      Returns:
      A set with type referenced by this model element. Must not be null.
    • getFactoryMethod

      public Assignment getFactoryMethod()
    • isIncludeSourceNullCheck

      public boolean isIncludeSourceNullCheck()
    • isSetExplicitlyToNull

      public boolean isSetExplicitlyToNull()
    • isSetExplicitlyToDefault

      public boolean isSetExplicitlyToDefault()