Class ExtractRefactoringStatementAnalyzer.ExtractingContentInformation
- java.lang.Object
-
- com._1c.g5.v8.dt.bsl.ui.refactoring.ExtractRefactoringStatementAnalyzer.ExtractingContentInformation
-
- Enclosing class:
- ExtractRefactoringStatementAnalyzer
public static class ExtractRefactoringStatementAnalyzer.ExtractingContentInformation extends Object
Class contains all information for creating method in extracting refactoring
-
-
Constructor Summary
Constructors Constructor Description ExtractingContentInformation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<CaseInsensitiveString>
getDepricateParamNames()
Gets list of deprecated parameters name for extracting methodString
getMethodPragmas()
Gets actual method pragmasList<ExtractRefactoringStatementAnalyzer.ParamDescription>
getParams()
Gets list of parameters descriptionString
getReturnVariableName()
Gets name of the variable returning from methodList<String>
getVariablesForDeclareInMethod()
Gets list names of variables which must be declared in methodList<String>
getVariablesNamesInitializeBeforeMethodCall()
Gets list names of variables which must be initialize before method callboolean
isAsync()
Gets flag detects that method must be 'Async' in Bsl moduleboolean
isExport()
Gets flag detects that method must be 'Export' in Bsl moduleboolean
isExpression()
Checks that extracting method corresponding to expressionboolean
isFunction()
Checks that extracting method is functionboolean
isReturnMethod()
Gets flag that detects that operator "return" must be before method callvoid
setAsync(boolean async)
Sets flag detects that method must be 'Async' in Bsl modulevoid
setDepricateParamNames(List<CaseInsensitiveString> depricateParamNames)
Sets list of deprecated parameters name for extracting methodvoid
setExport(boolean export)
Sets flag detects that method must be 'Export' in Bsl modulevoid
setExpression(boolean isExpression)
Sets that extracting method corresponding to expressionvoid
setFunction(boolean isFunction)
Sets that exptracting method is functionvoid
setMethodPragmas(String methodPragmas)
Sets method pragmasvoid
setParams(List<ExtractRefactoringStatementAnalyzer.ParamDescription> params)
Sets list of parameters descriptionvoid
setReturnVariableName(String returnVariableName)
Sets name of the variable returning from methodvoid
setVariablesForDeclareInMethod(List<String> variablesForDeclareInMethod)
Sets list names of variables which must be declared in methodvoid
setVariablesNamesInitializeBeforeMethodCall(List<String> variablesNamesInitializeBeforeMethodCall)
Sets list names of variables which must be initialize before method call
-
-
-
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 benull
-
isFunction
public boolean isFunction()
Checks that extracting method is function- Returns:
true
if extracting method is function,false
otherwise
-
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,false
otherwise
-
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 benull
-
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
-
isAsync
public boolean isAsync()
Gets flag detects that method must be 'Async' in Bsl module- Returns:
true
if method must be 'Async',false
otherwise
-
setAsync
public void setAsync(boolean async)
Sets flag detects that method must be 'Async' in Bsl module- Parameters:
export
-true
if method must be 'Async',false
otherwise
-
getParams
public List<ExtractRefactoringStatementAnalyzer.ParamDescription> getParams()
Gets list of parameters description- Returns:
- list of parameters description, can't be
null
-
setParams
public void setParams(List<ExtractRefactoringStatementAnalyzer.ParamDescription> params)
Sets list of parameters description- Parameters:
params
- list of parameters description, can't benull
-
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 benull
-
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 benull
-
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 benull
-
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
-
-