Class SetterWrapper

All Implemented Interfaces:
Assignment, Writable

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

    • SetterWrapper

      public SetterWrapper(Assignment rhs, List<Type> thrownTypesToExclude, boolean fieldAssignment, boolean includeSourceNullCheck, boolean setExplicitlyToNull, boolean setExplicitlyToDefault)
    • SetterWrapper

      public SetterWrapper(Assignment rhs, List<Type> thrownTypesToExclude, boolean fieldAssignment)
  • 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
    • isSetExplicitlyToNull

      public boolean isSetExplicitlyToNull()
    • isSetExplicitlyToDefault

      public boolean isSetExplicitlyToDefault()
    • isIncludeSourceNullCheck

      public boolean isIncludeSourceNullCheck()