Class ExtractRefactoringStatementAnalyzer.ParamDescription

  • Enclosing class:
    ExtractRefactoringStatementAnalyzer

    public static class ExtractRefactoringStatementAnalyzer.ParamDescription
    extends Object
    Class contains all information of one extracting method parameters
    • Constructor Detail

      • ParamDescription

        public ParamDescription()
    • Method Detail

      • getInitialName

        public String getInitialName()
        Gets initial name of the parameter
        Returns:
        initial name of the parameter, can't be null
      • setInitialName

        public void setInitialName​(String initialName)
        Sets initial name of the parameter
        Parameters:
        initialName - initial name of the parameter, can't be null
      • getFinalName

        public String getFinalName()
        Gets final name of the parameter
        Returns:
        final name of the parameter, can't be null
      • setFinalName

        public void setFinalName​(String finalName)
        Sets final name of the parameter
        Parameters:
        finalName - final name of the parameter, can't be null
      • getOccurrencesPosition

        public int[] getOccurrencesPosition()
        Gets all position where this parameter used in body of the extracting method
        Returns:
        all position where this parameter used in body of the extracting method, can't be null
      • setOccurrencesPosition

        public void setOccurrencesPosition​(int[] occurrencesPosition)
        Sets all position where this parameter used in body of the extracting method
        Parameters:
        occurrencesPosition - all position where this parameter used in body of the extracting method, can't be null
      • isByValue

        public boolean isByValue()
        Gets flag detects that this 'By Value' parameter
        Returns:
        true if detects that this 'By Value' parameter, false otherwise
      • setByValue

        public void setByValue​(boolean isByValue)
        Sets flag detects that this 'By Value' parameter
        Parameters:
        isByValue - true if detects that this 'By Value' parameter, false otherwise