Class CheckConditionsOperation

    • Field Detail

      • NONE

        public static final int NONE
        Flag indicating that no conditions will be checked
        See Also:
        Constant Field Values
      • INITIAL_CONDITONS

        public static final int INITIAL_CONDITONS
        Flag indicating that only initial conditions will be checked
        See Also:
        Constant Field Values
      • FINAL_CONDITIONS

        public static final int FINAL_CONDITIONS
        Flag indicating that only final conditions will be checked
        See Also:
        Constant Field Values
      • ALL_CONDITIONS

        public static final int ALL_CONDITIONS
        Flag indicating that all conditions will be checked
        See Also:
        Constant Field Values
    • Constructor Detail

      • CheckConditionsOperation

        public CheckConditionsOperation​(Refactoring refactoring,
                                        int style)
        Creates a new CheckConditionsOperation.
        Parameters:
        refactoring - the refactoring for which the preconditions are to be checked.
        style - style to define which conditions to check. Must be one of INITIAL_CONDITONS, FINAL_CONDITIONS or ALL_CONDITIONS
    • Method Detail

      • getStatus

        public RefactoringStatus getStatus()
        Returns the outcome of the operation or null if an exception has occurred while performing the operation or if the operation hasn't been performed yet.
        Returns:
        the RefactoringStatus of the condition checking
      • getRefactoring

        public Refactoring getRefactoring()
        Returns the operation's refactoring
        Returns:
        the operation's refactoring
      • getStyle

        public int getStyle()
        Returns the condition checking style.
        Returns:
        the condition checking style