Class ExtractRefactoringStatementAnalyzer.ExtractingContentInformation

  • Enclosing class:
    ExtractRefactoringStatementAnalyzer

    public static class ExtractRefactoringStatementAnalyzer.ExtractingContentInformation
    extends Object
    Class contains all information for creating method in extracting refactoring
    • Constructor Detail

      • ExtractingContentInformation

        public ExtractingContentInformation()
    • Method Detail

      • getMethodPragmas

        public String getMethodPragmas()
        Gets actual method pragmas
        Returns:
        the methodPragmas or empty string if no pragmas, can't be null
      • setMethodPragmas

        public void setMethodPragmas​(String methodPragmas)
        Sets method pragmas
        Parameters:
        methodPragmas - method pragmas, can't be null
      • isFunction

        public boolean isFunction()
        Checks that extracting method is function
        Returns:
        true if extracting method is function, falseotherwise
      • setFunction

        public void setFunction​(boolean isFunction)
        Sets that exptracting method is function
        Parameters:
        isFunction - flag that exptracting method is function
      • isExpression

        public boolean isExpression()
        Checks that extracting method corresponding to expression
        Returns:
        true extracting method corresponding to expression, falseotherwise
      • setExpression

        public void setExpression​(boolean isExpression)
        Sets that extracting method corresponding to expression
        Parameters:
        isExpression - flag that extracting method corresponding to expression
      • getReturnVariableName

        public String getReturnVariableName()
        Gets name of the variable returning from method
        Returns:
        name of the variable returning from method, or empty, if method not return variable
      • setReturnVariableName

        public void setReturnVariableName​(String returnVariableName)
        Sets name of the variable returning from method
        Parameters:
        returnVariableName - name of the variable returning from method, or empty, if method not return variable, can't be null
      • isExport

        public boolean isExport()
        Gets flag detects that method must be 'Export' in Bsl module
        Returns:
        true if method must be 'Export', false otherwise
      • setExport

        public void setExport​(boolean export)
        Sets flag detects that method must be 'Export' in Bsl module
        Parameters:
        export - true if method must be 'Export', false otherwise
      • getDepricateParamNames

        public List<CaseInsensitiveString> getDepricateParamNames()
        Gets list of deprecated parameters name for extracting method
        Returns:
        list of deprecated parameters name for extracting method, can't be null
      • setDepricateParamNames

        public void setDepricateParamNames​(List<CaseInsensitiveString> depricateParamNames)
        Sets list of deprecated parameters name for extracting method
        Parameters:
        depricateParamNames - list of deprecated parameters name for extracting method, can't be null
      • getVariablesNamesInitializeBeforeMethodCall

        public List<String> getVariablesNamesInitializeBeforeMethodCall()
        Gets list names of variables which must be initialize before method call
        Returns:
        list names of variables which must be initialize before method call, can't be null
      • setVariablesNamesInitializeBeforeMethodCall

        public void setVariablesNamesInitializeBeforeMethodCall​(List<String> variablesNamesInitializeBeforeMethodCall)
        Sets list names of variables which must be initialize before method call
        Parameters:
        variablesNamesInitializeBeforeMethodCall - list names of variables which must be initialize before method call, can't be null
      • getVariablesForDeclareInMethod

        public List<String> getVariablesForDeclareInMethod()
        Gets list names of variables which must be declared in method
        Returns:
        list names of variables which must be declared in method, can't be null
      • setVariablesForDeclareInMethod

        public void setVariablesForDeclareInMethod​(List<String> variablesForDeclareInMethod)
        Sets list names of variables which must be declared in method
        Parameters:
        list - names of variables which must be declared in method, can't be null
      • isReturnMethod

        public boolean isReturnMethod()
        Gets flag that detects that operator "return" must be before method call
        Returns:
        true if operator "return" must be before method call, false otherwise